Package org.synchronoss.cpo.jdbc
Class JndiJdbcDataSourceInfo
java.lang.Object
org.synchronoss.cpo.core.AbstractDataSourceInfo
org.synchronoss.cpo.jdbc.AbstractJdbcDataSourceInfo
org.synchronoss.cpo.jdbc.JndiJdbcDataSourceInfo
- All Implemented Interfaces:
DataSourceInfo
Collects the info required to instantiate a DataSource stored as a JNDI Resource.
Provides the DataSourceInfo factory method getDataSource which instantiates the DataSource
- Author:
- dberry
-
Constructor Summary
ConstructorsConstructorDescriptionJndiJdbcDataSourceInfo(String jndiName, int fetchSize, int batchSize) Creates a JndiJdbcDataSourceInfo from a JNDIName that represents the datasource in the application server.JndiJdbcDataSourceInfo(String jndiName, int fetchSize, int batchSize, Context ctx) Creates a JndiJdbcDataSourceInfo from a JNDIName that represents the datasource in the application server. -
Method Summary
Methods inherited from class org.synchronoss.cpo.core.AbstractDataSourceInfo
getBatchSize, getDataSource, getDataSourceName, getFetchSize
-
Constructor Details
-
JndiJdbcDataSourceInfo
Creates a JndiJdbcDataSourceInfo from a JNDIName that represents the datasource in the application server.- Parameters:
jndiName- The JndiName of the app server datasourcefetchSize- The fetchSize for the datasourcebatchSize- The batchSize used to update the datasource
-
JndiJdbcDataSourceInfo
Creates a JndiJdbcDataSourceInfo from a JNDIName that represents the datasource in the application server.- Parameters:
jndiName- The JndiName of the app server datasourcefetchSize- The fetchSize for the datasourcebatchSize- The batchSize used to update the datasourcectx- - The context for which the Jndi Lookup should use.
-