Package overit.geocall.sql
Class ElasticPooledConnection
java.lang.Object
overit.geocall.sql.PooledConnection
overit.geocall.sql.ElasticPooledConnection
- All Implemented Interfaces:
AutoCloseable
Database connection extracted from the
ElasticConnectionPool-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.sql.PooledConnection
PooledConnection.Metadata -
Field Summary
Fields inherited from class overit.geocall.sql.PooledConnection
_connectionpool, _dbstatements, died -
Constructor Summary
ConstructorsConstructorDescriptionElasticPooledConnection(ElasticConnectionPool pool, DirectConnection directConnection) Create a new instance of a elastic connection that based on the give direct database's connection. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
Constructor Details
-
ElasticPooledConnection
Create a new instance of a elastic connection that based on the give direct database's connection.- Parameters:
pool- the pools the connection belongs todirectConnection- the direct connection to the database
-
-
Method Details
-
getConnection
Description copied from class:PooledConnectionReturns the JDBC connection used by the instance- Specified by:
getConnectionin classPooledConnection- Returns:
- The JDBC connection
-
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
-