org.apache.ojb.broker.core
Class PoolablePersistenceBroker

java.lang.Object
  extended by org.apache.ojb.broker.core.DelegatingPersistenceBroker
      extended by org.apache.ojb.broker.core.PoolablePersistenceBroker
All Implemented Interfaces:
PBState, PersistenceBroker, PersistenceBrokerInternal, org.apache.ojb.broker.util.configuration.Configurable, ObjectContainer
Direct Known Subclasses:
PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl

public class PoolablePersistenceBroker
extends DelegatingPersistenceBroker


Constructor Summary
PoolablePersistenceBroker(PersistenceBrokerInternal broker, org.apache.commons.pool.KeyedObjectPool pool)
           
 
Method Summary
 boolean close()
          Closes this broker so that no further requests may be made on it.
 void destroy()
           
 
Methods inherited from class org.apache.ojb.broker.core.DelegatingPersistenceBroker
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, isClosed, isInTransaction, isManaged, query, removeAllListeners, removeAllListeners, removeFromCache, removeListener, retrieveAllReferences, retrieveReference, serviceBrokerHelper, serviceConnectionManager, serviceIdentity, serviceJdbcAccess, serviceObjectCache, serviceSequenceManager, serviceSqlGenerator, serviceStatementManager, setClosed, setDelegate, setManaged, store, store, store
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolablePersistenceBroker

public PoolablePersistenceBroker(PersistenceBrokerInternal broker,
                                 org.apache.commons.pool.KeyedObjectPool pool)
Method Detail

close

public boolean close()
Description copied from interface: PersistenceBroker
Closes this broker so that no further requests may be made on it. Closing a broker might release it to the pool of available brokers, or might be garbage collected, at the option of the implementation.

Specified by:
close in interface PersistenceBroker
Overrides:
close in class DelegatingPersistenceBroker
Returns:
true if the broker was successfully closed

destroy

public void destroy()


(C) 2002 - 2006 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