Class PooledConnectionImpl

java.lang.Object
org.datanucleus.store.rdbms.datasource.dbcp2.cpdsadapter.PooledConnectionImpl
All Implemented Interfaces:
PooledConnection, KeyedPooledObjectFactory<PStmtKey,DelegatingPreparedStatement>

Implementation of PooledConnection that is returned by PooledConnectionDataSource.
Since:
2.0
  • Field Details

    • CLOSED

      private static final String CLOSED
      See Also:
    • connection

      private Connection connection
      The JDBC database connection that represents the physical db connection.
    • delegatingConnection

      private final DelegatingConnection<?> delegatingConnection
      A DelegatingConnection used to create a PoolablePreparedStatementStub.
    • logicalConnection

      private Connection logicalConnection
      The JDBC database logical connection.
    • eventListeners

      private final Vector<ConnectionEventListener> eventListeners
      ConnectionEventListeners.
    • statementEventListeners

      private final Vector<StatementEventListener> statementEventListeners
      StatementEventListeners.
    • closed

      private boolean closed
      Flag set to true, once close() is called.
    • pStmtPool

      My pool of PreparedStatements.
    • accessToUnderlyingConnectionAllowed

      private boolean accessToUnderlyingConnectionAllowed
      Controls access to the underlying connection.
  • Constructor Details

    • PooledConnectionImpl

      PooledConnectionImpl(Connection connection)
      Wraps the real connection.
      Parameters:
      connection - the connection to be wrapped.
  • Method Details