public class ClassJdbcDataSourceInfo extends AbstractJdbcDataSource implements ConnectionEventListener
| Constructor and Description |
|---|
ClassJdbcDataSourceInfo(String className,
SortedMap<String,String> properties)
Creates a ClassJdbcDataSourceInfo from a Jdbc Driver
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(ConnectionEvent ce) |
void |
connectionErrorOccurred(ConnectionEvent ce) |
protected DataSource |
createDataSource() |
protected void |
finalize() |
Connection |
getConnection() |
String |
toString() |
getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrapgetDataSource, getDataSourceNamepublic ClassJdbcDataSourceInfo(String className, SortedMap<String,String> properties) throws CpoException
classname - The classname of a class that implements datasourceproperties - - The connection properties for connecting to the databaseCpoExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionprotected DataSource createDataSource() throws CpoException
createDataSource in class AbstractDataSourceInfoCpoExceptionpublic void connectionClosed(ConnectionEvent ce)
connectionClosed in interface ConnectionEventListenerpublic void connectionErrorOccurred(ConnectionEvent ce)
connectionErrorOccurred in interface ConnectionEventListenerCopyright © 2014. All Rights Reserved.