public class DBCPDataSourceFactory extends AbstractDataSourceFactorySpi
| Modifier and Type | Field and Description |
|---|---|
static DataAccessFactory.Param |
DRIVERCLASS |
static DataAccessFactory.Param |
DSTYPE |
static DataAccessFactory.Param |
JDBC_URL |
static DataAccessFactory.Param |
MAXACTIVE |
static DataAccessFactory.Param |
MAXIDLE |
static DataAccessFactory.Param |
PASSWORD |
static DataAccessFactory.Param |
USERNAME |
| Constructor and Description |
|---|
DBCPDataSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Map params)
Test to see if this factory is suitable for processing the data pointed to by the params map.
|
DataSource |
createDataSource(Map params)
Construct a live data source using the params specifed.
|
DataSource |
createNewDataSource(Map params)
Same as
DataSourceFactorySpi.createDataSource(Map), but forces the creation of a new DataSource |
String |
getDescription()
Describe the nature of the data source constructed by this factory.
|
DataAccessFactory.Param[] |
getParametersInfo()
MetaData about the required Parameters (for
DataSourceFactorySpi.createDataSource(Map)). |
boolean |
isAvailable()
Test to see if this data source is available, if it has all the appropriate libraries to
construct a datastore.
|
getDisplayName, getImplementationHintspublic static final DataAccessFactory.Param DSTYPE
public static final DataAccessFactory.Param USERNAME
public static final DataAccessFactory.Param PASSWORD
public static final DataAccessFactory.Param JDBC_URL
public static final DataAccessFactory.Param DRIVERCLASS
public static final DataAccessFactory.Param MAXACTIVE
public static final DataAccessFactory.Param MAXIDLE
public DataSource createDataSource(Map params) throws IOException
DataSourceFactorySpiparams - The full set of information needed to construct a live DataSource.IOException - if there were any problems setting up (creating or connecting) the
datasource.public boolean canProcess(Map params)
DataSourceFactorySpiIf this data source requires a number of parameters then this mehtod should check that they are all present and that they are all valid.
canProcess in interface DataSourceFactorySpicanProcess in class AbstractDataSourceFactorySpiparams - The full set of information needed to construct a live data source.public DataSource createNewDataSource(Map params) throws IOException
DataSourceFactorySpiDataSourceFactorySpi.createDataSource(Map), but forces the creation of a new DataSourceIOExceptionpublic String getDescription()
DataSourceFactorySpiA non localized description of this data store type.
public DataAccessFactory.Param[] getParametersInfo()
DataSourceFactorySpiDataSourceFactorySpi.createDataSource(Map)).public boolean isAvailable()
DataSourceFactorySpiCopyright © 1996–2019 Geotools. All rights reserved.