public abstract class SQLConfig extends Config
| Constructor and Description |
|---|
SQLConfig(DataService dataService,
String configId,
String type,
Map<String,String> properties,
boolean odataEnable) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
createConnection() |
Object[] |
createConnection(String user,
String pass) |
abstract int |
getActiveConnectionCount() |
org.wso2.carbon.dataservices.common.DBConstants.AutoCommit |
getAutoCommit() |
abstract DataSource |
getDataSource() |
abstract int |
getIdleConnectionCount() |
DynamicUserAuthenticator |
getPrimaryDynAuth() |
DynamicUserAuthenticator |
getSecondaryDynAuth() |
String |
getValidationQuery() |
boolean |
hasJDBCBatchUpdateSupport() |
protected void |
initSQLDataSource() |
boolean |
isActive() |
boolean |
isResultSetFieldsCaseSensitive() |
abstract boolean |
isStatsAvailable() |
close, createODataHandler, getConfigId, getDataService, getProperties, getProperty, getType, isODataEnabled, toStringpublic SQLConfig(DataService dataService, String configId, String type, Map<String,String> properties, boolean odataEnable) throws DataServiceFault
DataServiceFaultpublic DynamicUserAuthenticator getPrimaryDynAuth()
public DynamicUserAuthenticator getSecondaryDynAuth()
public boolean hasJDBCBatchUpdateSupport()
public org.wso2.carbon.dataservices.common.DBConstants.AutoCommit getAutoCommit()
protected void initSQLDataSource()
throws SQLException,
DataServiceFault
SQLExceptionDataServiceFaultpublic abstract DataSource getDataSource() throws DataServiceFault
DataServiceFaultpublic abstract boolean isStatsAvailable()
throws DataServiceFault
DataServiceFaultpublic abstract int getActiveConnectionCount()
throws DataServiceFault
DataServiceFaultpublic abstract int getIdleConnectionCount()
throws DataServiceFault
DataServiceFaultpublic String getValidationQuery()
public Object[] createConnection() throws SQLException, DataServiceFault
SQLExceptionDataServiceFaultpublic Object[] createConnection(String user, String pass) throws SQLException, DataServiceFault
SQLExceptionDataServiceFaultpublic boolean isResultSetFieldsCaseSensitive()
isResultSetFieldsCaseSensitive in class ConfigCopyright © 2019 WSO2. All rights reserved.