Package org.synchronoss.cpo.jdbc
Class DriverJdbcDataSourceInfo
java.lang.Object
org.synchronoss.cpo.core.AbstractDataSourceInfo
org.synchronoss.cpo.jdbc.AbstractJdbcDataSourceInfo
org.synchronoss.cpo.jdbc.AbstractJdbcDataSource
org.synchronoss.cpo.jdbc.DriverJdbcDataSourceInfo
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource,DataSourceInfo
Collects the info required to instantiate a DataSource from a JDBC Driver Provides the
DataSourceInfo factory method getDataSource which instantiates the DataSource
- Author:
- dberry
-
Constructor Summary
ConstructorsConstructorDescriptionDriverJdbcDataSourceInfo(String driver, String url, int fetchSize, int batchSize) Creates a DriverJdbcDataSourceInfo from a Jdbc DriverDriverJdbcDataSourceInfo(String driver, String url, String username, String password, int fetchSize, int batchSize) Creates a DriverJdbcDataSourceInfo from a Jdbc DriverDriverJdbcDataSourceInfo(String driver, String url, Properties properties, int fetchSize, int batchSize) Creates a DriverJdbcDataSourceInfo from a Jdbc Driver -
Method Summary
Methods inherited from class org.synchronoss.cpo.jdbc.AbstractJdbcDataSource
getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrapMethods inherited from class org.synchronoss.cpo.core.AbstractDataSourceInfo
getBatchSize, getDataSource, getDataSourceName, getFetchSizeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
DriverJdbcDataSourceInfo
public DriverJdbcDataSourceInfo(String driver, String url, int fetchSize, int batchSize) throws CpoException Creates a DriverJdbcDataSourceInfo from a Jdbc Driver- Parameters:
driver- The text name of the driverurl- - The url that points to the database.fetchSize- The fetchSize for the datasourcebatchSize- The batchSize used to update the datasource- Throws:
CpoException- - Any errors encountered loading the driver
-
DriverJdbcDataSourceInfo
public DriverJdbcDataSourceInfo(String driver, String url, Properties properties, int fetchSize, int batchSize) throws CpoException Creates a DriverJdbcDataSourceInfo from a Jdbc Driver- Parameters:
driver- The text name of the driverurl- - The url that points to the database.properties- - The connection properties for connecting to the databasefetchSize- The fetchSize for the datasourcebatchSize- The batchSize used to update the datasource- Throws:
CpoException- - Any errors encountered loading the driver
-
DriverJdbcDataSourceInfo
public DriverJdbcDataSourceInfo(String driver, String url, String username, String password, int fetchSize, int batchSize) throws CpoException Creates a DriverJdbcDataSourceInfo from a Jdbc Driver- Parameters:
driver- The text name of the driverurl- - The url that points to the database.username- - The username for connecting to the databasepassword- - The password for connecting to the databasefetchSize- The fetchSize for the datasourcebatchSize- The batchSize used to update the datasource- Throws:
CpoException- - Any errors encountered loading the driver
-
-
Method Details
-
getConnection
- Throws:
SQLException
-
toString
-