public class PersistenceBrokerHandle extends DelegatingPersistenceBroker
| Constructor and Description |
|---|
PersistenceBrokerHandle(PersistenceBrokerInternal broker)
Constructor for the handle, set itself in
PersistenceBrokerThreadMapping.setCurrentPersistenceBroker(org.apache.ojb.broker.PBKey, org.apache.ojb.broker.PersistenceBrokerInternal) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
abortTransaction, addListener, addListener, addMtoNImplementor, beginTransaction, checkRefreshRelationships, clearCache, commitTransaction, configure, createProxy, delete, delete, deleteByQuery, deleteMtoNImplementor, fireBrokerEvent, fireBrokerEvent, fireBrokerEvent, getClassDescriptor, getCollectionByQuery, getCollectionByQuery, getCount, getDelegate, getDescriptorRepository, getInnermostDelegate, getIteratorByQuery, getObjectByIdentity, getObjectByQuery, getPBKey, getPKEnumerationByQuery, getProxyFactory, getReferenceBroker, getRelationshipPrefetcherFactory, getReportQueryIteratorByQuery, getTopLevelClass, hasClassDescriptor, isManaged, query, removeAllListeners, removeAllListeners, removeFromCache, removeListener, retrieveAllReferences, retrieveReference, serviceBrokerHelper, serviceConnectionManager, serviceIdentity, serviceJdbcAccess, serviceObjectCache, serviceSequenceManager, serviceSqlGenerator, serviceStatementManager, setClosed, setDelegate, setManaged, store, store, storepublic PersistenceBrokerHandle(PersistenceBrokerInternal broker)
PersistenceBrokerThreadMapping.setCurrentPersistenceBroker(org.apache.ojb.broker.PBKey, org.apache.ojb.broker.PersistenceBrokerInternal)public boolean isClosed()
PersistenceBrokerisClosed in interface PersistenceBrokerisClosed in class DelegatingPersistenceBrokerpublic boolean isInTransaction()
throws PersistenceBrokerException
PersistenceBrokerisInTransaction in interface PersistenceBrokerisInTransaction in class DelegatingPersistenceBrokertrue if there is a transaction in progressPersistenceBrokerExceptionpublic boolean close()
PersistenceBrokerThreadMapping.close in interface PersistenceBrokerclose in class DelegatingPersistenceBrokertrue if the broker was successfully closed(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30