Package overit.geocall.sql
Class StandardPooledConnection
java.lang.Object
overit.geocall.sql.PooledConnection
overit.geocall.sql.StandardPooledConnection
- All Implemented Interfaces:
AutoCloseable
The class is the implementation of the standard connection.
-
Nested Class Summary
Nested 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
ConstructorsConstructorDescriptionMain constructor for StandardPooledConnection -
Method Summary
Modifier and TypeMethodDescriptionvoidForcibly closes the JDBC connectionReturns the JDBC connection used by the instancegetInfo()Returns some informations about the connection, such the last connection time, last release time, etc.Methods inherited from class overit.geocall.sql.PooledConnection
check, close, commit, getDBStatement, getMetadata, getPool, isDied, release, releaseDBStatement, rollback, unsupported
-
Field Details
-
dc
-
-
Constructor Details
-
StandardPooledConnection
Main constructor for StandardPooledConnection- Parameters:
cp- TheStandardConnectionPooldc- TheDirectConnection
-
-
Method Details
-
getInfo
Description copied from class:PooledConnectionReturns some informations about the connection, such the last connection time, last release time, etc.- Specified by:
getInfoin classPooledConnection- Returns:
- The
PooledConnectionInfoobject that contains some informations about the connection
-
disconnect
Forcibly closes the JDBC connection- Throws:
SQLException- The request of the closing can raise an SQL exception
-
getConnection
Description copied from class:PooledConnectionReturns the JDBC connection used by the instance- Specified by:
getConnectionin classPooledConnection- Returns:
- The JDBC connection
-