public abstract class AbstractDataSource extends Object implements DataSource
| Constructor and Description |
|---|
AbstractDataSource() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
finalize the underlining implementation
|
abstract Connection |
getConnection() |
abstract void |
open(String persistanceUnitName,
String hintName)
initialize the underlining implementation
|
abstract void |
releaseConnection(Connection connection)
release the connection
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectiongetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterisWrapperFor, unwrappublic abstract void close()
public abstract Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic abstract void open(String persistanceUnitName, String hintName)
persistanceUnitName - the name of the persistence unithintName - the hint to be passedpublic abstract void releaseConnection(Connection connection)
connection - the connectionCopyright © 2012-2013 Batoo. All Rights Reserved.