Methods Summary |
---|
public synchronized oracle.toplink.essentials.internal.databaseaccess.Accessor | acquireConnection()INTERNAL:
When we acquire a connection from an ExternalConnectionPool we build
a new connection (retrieve it from the external pool).
return (Accessor)getCachedConnection().clone();
|
protected oracle.toplink.essentials.internal.databaseaccess.Accessor | getCachedConnection()INTERNAL:
Return the currently cached connection to the external connection pool
return cachedConnection;
|
public boolean | hasConnectionAvailable()INTERNAL:
Assume true as the driver is responsible for blocking.
return true;
|
public boolean | isThereConflictBetweenLoginAndType()INTERNAL:
Checks for a conflict between pool's type and pool's login
return !getLogin().shouldUseExternalConnectionPooling();
|
public synchronized void | releaseConnection(oracle.toplink.essentials.internal.databaseaccess.Accessor connection)INTERNAL:
When you release an external connection, you simply let it go.
getConnectionsUsed().removeElement(connection);
connection.closeConnection();
notify();
|
protected void | setCachedConnection(oracle.toplink.essentials.internal.databaseaccess.Accessor cachedConnection)Set the currently cached connection to the external connection pool.
this.cachedConnection = cachedConnection;
|
public synchronized void | shutDown()INTERNAL:
This mehtod is a no-op for external pools.
//do nothing
setIsConnected(false);
|
public synchronized void | startUp()INTERNAL:
Build the default connection.
This validates that connect will work and sets up the parent accessor to clone.
setCachedConnection(buildConnection());
setIsConnected(true);
|