public class DriverJdbcDataSourceInfo extends AbstractJdbcDataSource
| Constructor and Description |
|---|
DriverJdbcDataSourceInfo(String driver,
String url)
Creates a DriverJdbcDataSourceInfo from a Jdbc Driver
|
DriverJdbcDataSourceInfo(String driver,
String url,
Properties properties)
Creates a DriverJdbcDataSourceInfo from a Jdbc Driver
|
DriverJdbcDataSourceInfo(String driver,
String url,
String username,
String password)
Creates a DriverJdbcDataSourceInfo from a Jdbc Driver
|
| Modifier and Type | Method and Description |
|---|---|
protected DataSource |
createDataSource() |
Connection |
getConnection() |
String |
toString() |
getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrapgetDataSource, getDataSourceNamepublic DriverJdbcDataSourceInfo(String driver, String url) throws CpoException
driver - The text name of the driverurl - - The url that points to the database.CpoExceptionpublic DriverJdbcDataSourceInfo(String driver, String url, Properties properties) throws CpoException
driver - The text name of the driverurl - - The url that points to the database.properties - - The connection properties for connecting to the databaseCpoExceptionpublic DriverJdbcDataSourceInfo(String driver, String url, String username, String password) throws CpoException
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 connectinf to the databaseCpoExceptionprotected DataSource createDataSource() throws CpoException
createDataSource in class AbstractDataSourceInfoCpoExceptionpublic Connection getConnection() throws SQLException
SQLExceptionCopyright © 2014. All Rights Reserved.