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, store
public PersistenceBrokerHandle(PersistenceBrokerInternal broker)
PersistenceBrokerThreadMapping.setCurrentPersistenceBroker(org.apache.ojb.broker.PBKey, org.apache.ojb.broker.PersistenceBrokerInternal)
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 progressPersistenceBrokerException
public boolean close()
PersistenceBrokerThreadMapping
.close
in interface PersistenceBroker
close
in class DelegatingPersistenceBroker
true
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