Package org.wso2.carbon.ndatasource.ui
Class NDataSourceHelper
java.lang.Object
org.wso2.carbon.ndatasource.ui.NDataSourceHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceMetaInfocreateWSDataSourceMetaInfo(javax.servlet.http.HttpServletRequest request, NDataSourceAdminServiceClient client) static StringelementToString(Element element) getAllDataSources(org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceInfo[] allDataSourcesInfo) static StringgetRDBMSEngine(String jdbcUrl) Returns the RDBMS engine name by analyzing the JDBC URL.static StringprettifyXML(String xmlContent) Prettify a given XML stringstatic ElementstringToElement(String xml) static DSXMLConfiguration
-
Constructor Details
-
NDataSourceHelper
public NDataSourceHelper()
-
-
Method Details
-
createWSDataSourceMetaInfo
public static org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceMetaInfo createWSDataSourceMetaInfo(javax.servlet.http.HttpServletRequest request, NDataSourceAdminServiceClient client) throws RemoteException, org.wso2.carbon.ndatasource.common.DataSourceException, org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException - Throws:
RemoteExceptionorg.wso2.carbon.ndatasource.common.DataSourceExceptionorg.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException
-
getAllDataSources
-
unMarshal
public static DSXMLConfiguration unMarshal(String datasourceType, String configuration) throws org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException - Throws:
org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException
-
stringToElement
-
elementToString
-
prettifyXML
Prettify a given XML string -
getRDBMSEngine
Returns the RDBMS engine name by analyzing the JDBC URL.
-