|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.core.DelegatingPersistenceBroker
org.apache.ojb.broker.core.PersistenceBrokerHandle
public class PersistenceBrokerHandle
| Constructor Summary | |
|---|---|
PersistenceBrokerHandle(PersistenceBrokerInternal broker)
Constructor for the handle, set itself in PersistenceBrokerThreadMapping.setCurrentPersistenceBroker(org.apache.ojb.broker.PBKey, org.apache.ojb.broker.PersistenceBrokerInternal) |
|
| Method Summary | |
|---|---|
boolean |
close()
Destroy this handle and return the underlying (wrapped) PB instance to pool (when using default implementation of PersistenceBrokerFactory), unset this instance from PersistenceBrokerThreadMapping. |
boolean |
isClosed()
Determines whether this broker is closed. |
boolean |
isInTransaction()
Determines whether there is currently a transaction in progress. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceBrokerHandle(PersistenceBrokerInternal broker)
PersistenceBrokerThreadMapping.setCurrentPersistenceBroker(org.apache.ojb.broker.PBKey, org.apache.ojb.broker.PersistenceBrokerInternal)
| Method Detail |
|---|
public boolean isClosed()
PersistenceBroker
isClosed in interface PersistenceBrokerisClosed in class DelegatingPersistenceBroker
public boolean isInTransaction()
throws PersistenceBrokerException
PersistenceBroker
isInTransaction in interface PersistenceBrokerisInTransaction in class DelegatingPersistenceBrokertrue if there is a transaction in progress
PersistenceBrokerExceptionpublic boolean close()
PersistenceBrokerThreadMapping.
close in interface PersistenceBrokerclose in class DelegatingPersistenceBrokertrue if the broker was successfully closed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||