|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.odmg.PBCapsule
Capsulates the way to obtain PersistenceBroker instances when a odmg-tx is running or not - Do not forget to call the destroy() method after use. When a transaction was found we use the PersistenceBroker instance shipped with the Transaction (HasBroker Interface), else we try to obtain a broker using the given PBKey directly from the PBF.
Field Summary | |
(package private) PersistenceBroker |
broker
|
(package private) boolean |
isIlleagal
|
(package private) boolean |
needsPBCommit
|
(package private) boolean |
needsTxCommit
|
(package private) PBKey |
pbKey
|
(package private) Transaction |
tx
|
Constructor Summary | |
PBCapsule(PBKey pbKey,
Transaction tx)
|
Method Summary | |
void |
destroy()
|
PersistenceBroker |
getBroker()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
PersistenceBroker broker
PBKey pbKey
Transaction tx
boolean needsTxCommit
boolean needsPBCommit
boolean isIlleagal
Constructor Detail |
public PBCapsule(PBKey pbKey, Transaction tx)
Method Detail |
public PersistenceBroker getBroker()
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |