Class EmbedPooledConnection

java.lang.Object
org.apache.derby.jdbc.EmbedPooledConnection
All Implemented Interfaces:
PooledConnection, BrokeredConnectionControl
Direct Known Subclasses:
EmbedXAConnection

class EmbedPooledConnection extends Object implements PooledConnection, BrokeredConnectionControl
A PooledConnection object is a connection object that provides hooks for connection pool management.

This is Derby's implementation of a PooledConnection for use in the following environments:

  • JDBC 4.2 - Java SE 8
  • JDBC 4.1 - Java SE 7
  • JDBC 4.0 - Java SE 6
  • Field Details

    • connString

      private String connString
      the connection string
    • eventListener

      private ArrayList<ConnectionEventListener> eventListener
      The list of ConnectionEventListeners. It is initially null and will be initialized lazily when the first listener is added.
    • statementEventListeners

      private final CopyOnWriteArrayList<StatementEventListener> statementEventListeners
      List of statement event listeners. The list is copied on each write, ensuring that it can be safely iterated over even if other threads or the listeners fired in the same thread add or remove listeners.
    • eventIterators

      private int eventIterators
      The number of iterators going through the list of connection event listeners at the current time. Only one thread may be iterating over the list at any time (because of synchronization), but a single thread may have multiple iterators if for instance an event listener performs database calls that trigger a new event.
    • realConnection

      EmbedConnection realConnection
    • defaultIsolationLevel

      int defaultIsolationLevel
    • defaultReadOnly

      private boolean defaultReadOnly
    • currentConnectionHandle

      BrokeredConnection currentConnectionHandle
    • dataSource

      final BasicEmbeddedDataSource40 dataSource
    • username

      private final String username
    • password

      private final String password
    • requestPassword

      private final boolean requestPassword
      True if the password was passed in on the connection request, false if it came from the data source property.
    • isActive

      protected boolean isActive
  • Constructor Details

  • Method Details