Package overit.geocall.sql
Class DataSourcePooledConnection
java.lang.Object
overit.geocall.sql.PooledConnection
overit.geocall.sql.DataSourcePooledConnection
- All Implemented Interfaces:
AutoCloseable
The class defines a connection that can be inserted into any implementation of
DataSourceConnectionPool-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUtility class used to associate a map with aPooledConnectionInfoNested classes/interfaces inherited from class overit.geocall.sql.PooledConnection
PooledConnection.Metadata -
Field Summary
FieldsFields inherited from class overit.geocall.sql.PooledConnection
_connectionpool, _dbstatements, died -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataSourcePooledConnection starting from the DataSourceConnectionPool, and a Connection -
Method Summary
Modifier and TypeMethodDescriptionReturns the JDBC connection used by the instancegetInfo()Returns thePooledConnectionInfovoidMethods inherited from class overit.geocall.sql.PooledConnection
check, close, commit, getDBStatement, getMetadata, getPool, isDied, release, releaseDBStatement, rollback, unsupported
-
Field Details
-
info
-
connection
-
-
Constructor Details
-
DataSourcePooledConnection
Creates an instance of DataSourcePooledConnection starting from the DataSourceConnectionPool, and a Connection- Parameters:
dscp- The connection pool from which the connection must be extractedc- The connection- Throws:
SQLException- If an error occurs anSQLExceptionis raised
-
-
Method Details
-
getInfo
Returns thePooledConnectionInfo- Specified by:
getInfoin classPooledConnection- Returns:
- The
PooledConnectionInfo
-
getConnection
Description copied from class:PooledConnectionReturns the JDBC connection used by the instance- Specified by:
getConnectionin classPooledConnection- Returns:
- The JDBC connection
-
onRelease
- Throws:
SQLException
-