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.
|
destroy
addListener, 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, store
public PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl(PersistenceBrokerInternal broker, org.apache.commons.pool.KeyedObjectPool pool)
public void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization
public void afterCompletion(int status)
afterCompletion
in interface javax.transaction.Synchronization
public boolean close()
PersistenceBroker
close
in interface PersistenceBroker
close
in class PoolablePersistenceBroker
true
if the broker was successfully closedpublic void beginTransaction() throws TransactionInProgressException, TransactionAbortedException
PersistenceBroker
beginTransaction
in interface PersistenceBroker
beginTransaction
in class DelegatingPersistenceBroker
TransactionInProgressException
- If there is already a transaction in progressTransactionAbortedException
public void commitTransaction() throws TransactionNotInProgressException, TransactionAbortedException
PersistenceBroker
commitTransaction
in interface PersistenceBroker
commitTransaction
in class DelegatingPersistenceBroker
TransactionNotInProgressException
- If there is no transaction currently in progressTransactionAbortedException
- If the transaction cannot be committedpublic void abortTransaction() throws TransactionNotInProgressException
PersistenceBroker
abortTransaction
in interface PersistenceBroker
abortTransaction
in class DelegatingPersistenceBroker
TransactionNotInProgressException
- 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