Purpose: This subclass is intended to be used with external connection pools. For these pools, TopLink does not control the pooling behavior. The login should have the usesExternalConnectionPooling set to "true".
| Modifier and Type | Field and Description |
|---|---|
| protected Accessor |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ExternalConnectionPool(String name, Login login, ServerSession owner)
PUBLIC: Build a new external connection pool. |
| Modifier and Type | Method and Description |
|---|---|
| public Accessor | acquireConnection()
Overrides org. |
| protected Accessor | Returns: org.eclipse.persistence.internal.databaseaccess.AccessorINTERNAL: Return the currently cached connection to the external connection pool |
| public boolean | hasConnectionAvailable()
Overrides org. |
| public boolean | isThereConflictBetweenLoginAndType()
Overrides org. |
| public void | releaseConnection(Accessor connection)
Overrides org. |
| protected void | setCachedConnection(Accessor cachedConnection)
Set the currently cached connection to the external connection pool. |
| public void | setCheckConnections()
Overrides org. |
| public synchronized void | shutDown()
Overrides org. |
| public synchronized void | startUp()
Overrides org. |
| cachedConnection | back to summary |
|---|---|
| protected Accessor cachedConnection | |
| ExternalConnectionPool | back to summary |
|---|---|
| public ExternalConnectionPool() PUBLIC: Build a new external connection pool. The JDBC driver is responsible for pooling the connections. | |
| ExternalConnectionPool | back to summary |
|---|---|
| public ExternalConnectionPool(String name, Login login, ServerSession owner) PUBLIC: Build a new external connection pool. The JDBC driver is responsible for pooling the connections. | |
| acquireConnection | back to summary |
|---|---|
| public Accessor acquireConnection() throws ConcurrencyException Overrides org. INTERNAL: When we acquire a connection from an ExternalConnectionPool we build a new connection (retrieve it from the external pool).
| |
| getCachedConnection | back to summary |
|---|---|
| protected Accessor getCachedConnection() INTERNAL: Return the currently cached connection to the external connection pool
| |
| hasConnectionAvailable | back to summary |
|---|---|
| public boolean hasConnectionAvailable() Overrides org. INTERNAL: Assume true as the driver is responsible for blocking.
| |
| isThereConflictBetweenLoginAndType | back to summary |
|---|---|
| public boolean isThereConflictBetweenLoginAndType() Overrides org. INTERNAL: Checks for a conflict between pool's type and pool's login
| |
| releaseConnection | back to summary |
|---|---|
| public void releaseConnection(Accessor connection) throws DatabaseException Overrides org. INTERNAL: When you release an external connection, you simply let it go.
| |
| setCachedConnection | back to summary |
|---|---|
| protected void setCachedConnection(Accessor cachedConnection) Set the currently cached connection to the external connection pool. | |
| setCheckConnections | back to summary |
|---|---|
| public void setCheckConnections() Overrides org. INTERNAL: This method is called to indicate that all available connections should be checked. Noop on external connection pool.
| |
| shutDown | back to summary |
|---|---|
| public synchronized void shutDown() Overrides org. INTERNAL: This mehtod is a no-op for external pools.
| |
| startUp | back to summary |
|---|---|
| public synchronized void startUp() Overrides org. INTERNAL: Build the default connection. This validates that connect will work and sets up the parent accessor to clone.
| |