Methods Summary |
---|
public synchronized oracle.toplink.essentials.internal.databaseaccess.Accessor | acquireAccessor()
if (isBusy) {
try {
wait();// Notify is called when connection is released.
} catch (InterruptedException exception) {
throw ConcurrencyException.waitFailureOnSequencingForDatabaseSession(exception);
}
}
isBusy = true;
return accessor;
|
protected void | finalize()
onDisconnect();
|
public boolean | isConnected()
return accessor.isConnected();
|
public void | onConnect()
if (!isConnected()) {
accessor.connect(login, ownerSession);
}
|
public void | onDisconnect()
if (isConnected()) {
accessor.disconnect(ownerSession);
}
|
public synchronized void | releaseAccessor(oracle.toplink.essentials.internal.databaseaccess.Accessor accessor)
isBusy = false;
notify();
|