|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractDataSourceFactorySpi
JNDIDataSourceFactory
public class JNDIDataSourceFactory
A datasource factory SPI doing JDNI lookups
modules/library/jdbc (gt-jdbc.jar)
Field Summary | |
---|---|
static DataAccessFactory.Param |
DSTYPE
|
static DataAccessFactory.Param |
JNDI_REFNAME
|
Constructor Summary | |
---|---|
JNDIDataSourceFactory()
|
Method Summary | |
---|---|
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()
Make sure a JNDI context is available |
Methods inherited from class AbstractDataSourceFactorySpi |
---|
getDisplayName, getImplementationHints |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DataAccessFactory.Param DSTYPE
public static final DataAccessFactory.Param JNDI_REFNAME
Constructor Detail |
---|
public JNDIDataSourceFactory()
Method Detail |
---|
public DataSource createDataSource(Map params) throws IOException
DataSourceFactorySpi
params
- 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)
DataSourceFactorySpi
If 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 DataSourceFactorySpi
canProcess
in class AbstractDataSourceFactorySpi
params
- The full set of information needed to construct a live
data source.
public DataSource createNewDataSource(Map params) throws IOException
DataSourceFactorySpi
DataSourceFactorySpi.createDataSource(Map)
, but forces the creation of a new DataSource
IOException
public String getDescription()
DataSourceFactorySpi
A non localized description of this data store type.
public DataAccessFactory.Param[] getParametersInfo()
DataSourceFactorySpi
DataSourceFactorySpi.createDataSource(Map)
).
public boolean isAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |