public static class PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl extends PoolablePersistenceBroker implements javax.transaction.Synchronization
| Constructor and Description |
|---|
PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl(PersistenceBrokerInternal broker,
org.apache.commons.pool.KeyedObjectPool pool) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTransaction()
Aborts and closes the current transaction.
|
void |
afterCompletion(int status) |
void |
beforeCompletion() |
void |
beginTransaction()
Begins a transaction against the underlying RDBMS.
|
boolean |
close()
Closes this broker so that no further requests may be made on it.
|
void |
commitTransaction()
Commits and closes the current transaction.
|
destroyaddListener, addListener, addMtoNImplementor, checkRefreshRelationships, clearCache, 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, storepublic PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl(PersistenceBrokerInternal broker, org.apache.commons.pool.KeyedObjectPool pool)
public void beforeCompletion()
beforeCompletion in interface javax.transaction.Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface javax.transaction.Synchronizationpublic boolean close()
PersistenceBrokerclose in interface PersistenceBrokerclose in class PoolablePersistenceBrokertrue if the broker was successfully closedpublic void beginTransaction()
throws TransactionInProgressException,
TransactionAbortedException
PersistenceBrokerbeginTransaction in interface PersistenceBrokerbeginTransaction in class DelegatingPersistenceBrokerTransactionInProgressException - If there is already a transaction in progressTransactionAbortedExceptionpublic void commitTransaction()
throws TransactionNotInProgressException,
TransactionAbortedException
PersistenceBrokercommitTransaction in interface PersistenceBrokercommitTransaction in class DelegatingPersistenceBrokerTransactionNotInProgressException - If there is no transaction currently in progressTransactionAbortedException - If the transaction cannot be committedpublic void abortTransaction()
throws TransactionNotInProgressException
PersistenceBrokerabortTransaction in interface PersistenceBrokerabortTransaction in class DelegatingPersistenceBrokerTransactionNotInProgressException - If no transaction is currently in progress(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