public class SQLCarbonDataSourceConfig extends SQLConfig
Constructor and Description |
---|
SQLCarbonDataSourceConfig(DataService dataService,
String configId,
Map<String,String> properties) |
SQLCarbonDataSourceConfig(DataService dataService,
String configId,
Map<String,String> properties,
boolean odataEnable) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ODataDataHandler |
createODataHandler() |
int |
getActiveConnectionCount() |
static List<String> |
getCarbonDataSourceNames() |
static List<String> |
getCarbonDataSourceNamesForType(String[] types) |
static String |
getCarbonDataSourceType(String dsName) |
DataSource |
getDataSource() |
String |
getDataSourceName() |
int |
getIdleConnectionCount() |
boolean |
isStatsAvailable() |
createConnection, createConnection, getAutoCommit, getPrimaryDynAuth, getSecondaryDynAuth, getValidationQuery, hasJDBCBatchUpdateSupport, initSQLDataSource, isActive, isResultSetFieldsCaseSensitive
getConfigId, getDataService, getProperties, getProperty, getType, isODataEnabled, toString
public SQLCarbonDataSourceConfig(DataService dataService, String configId, Map<String,String> properties, boolean odataEnable) throws DataServiceFault
DataServiceFault
public SQLCarbonDataSourceConfig(DataService dataService, String configId, Map<String,String> properties) throws DataServiceFault
DataServiceFault
public DataSource getDataSource()
getDataSource
in class SQLConfig
public String getDataSourceName()
public static List<String> getCarbonDataSourceNamesForType(String[] types)
public int getActiveConnectionCount()
getActiveConnectionCount
in class SQLConfig
public int getIdleConnectionCount()
getIdleConnectionCount
in class SQLConfig
public boolean isStatsAvailable()
isStatsAvailable
in class SQLConfig
public ODataDataHandler createODataHandler() throws ODataServiceFault
createODataHandler
in class Config
ODataServiceFault
Copyright © 2019 WSO2. All rights reserved.