|
|||||||||
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 PersistenceBroker
isClosed
in class DelegatingPersistenceBroker
public boolean isInTransaction() throws PersistenceBrokerException
PersistenceBroker
isInTransaction
in interface PersistenceBroker
isInTransaction
in class DelegatingPersistenceBroker
true
if there is a transaction in progress
PersistenceBrokerException
public boolean close()
PersistenceBrokerThreadMapping
.
close
in interface PersistenceBroker
close
in class DelegatingPersistenceBroker
true
if the broker was successfully closed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |