|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.jdo.JDOTransaction
Deprecated. since OracleAS TopLink 10g (10.1.3). TopLink will no longer offer this JDO preview. Please refer to the best practices content on OTN for recommended abstraction layer development.
JDO wrapper for a TopLink unit of work.
| Method Summary | |
void |
begin()Deprecated. Begin a transaction. |
void |
commit()Deprecated. Commit the current transaction. |
boolean |
getNontransactionalRead()Deprecated. When the nontransactional read flag is set to false the PersistenceManager has a single TopLink UnitOfWork associated with it. |
boolean |
getNontransactionalWrite()Deprecated. If true, allows persistent instances to be written without a transaction active. |
boolean |
getOptimistic()Deprecated. Optimistic transactions do not hold data store locks until commit time. |
javax.jdo.PersistenceManager |
getPersistenceManager()Deprecated. The Tranansaction instance is always associated with exactly one PersistenceManager. |
boolean |
getRetainValues()Deprecated. If true, at commit time instances retain their field values. |
javax.transaction.Synchronization |
getSynchronization()Deprecated. The user-specified Synchronization instance for this Transaction instance. |
UnitOfWork |
getUnitOfWork()Deprecated. Return the associated TopLink unit of work. |
boolean |
isActive()Deprecated. Returns whether there is a transaction currently active. |
void |
rollback()Deprecated. Roll back the current transaction. |
void |
setNontransactionalRead(boolean nontransactionalRead)Deprecated. When the nontransactional read flag is set to false the PersistenceManager has a single TopLink UnitOfWork associated with it. |
void |
setNontransactionalWrite(boolean arg1)Deprecated. If true, allow persistent instances to be written without a transaction active. |
void |
setOptimistic(boolean arg1)Deprecated. Optimistic transactions do not hold data store locks until commit time. |
void |
setRetainValues(boolean arg1)Deprecated. If true, at commit instances retain their values and the instances transition to persistent-nontransactional. |
void |
setSynchronization(javax.transaction.Synchronization synchronizationListener)Deprecated. The user can specify a Synchronization instance to be notified on transaction completions. |
void |
setUnitOfWork(UnitOfWork newUnitOfWork)Deprecated. Set the associate unit of work. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void begin()
begin in interface javax.jdo.Transactionjavax.jdo.JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is already active.setOptimistic(boolean), getOptimistic()public void commit()
commit in interface javax.jdo.Transactionjavax.jdo.JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is not active.public boolean getNontransactionalRead()
JDO: If true, allows persistent instances to be read without a transaction active.
getNontransactionalRead in interface javax.jdo.Transactionpublic boolean getNontransactionalWrite()
getNontransactionalWrite in interface javax.jdo.Transactionpublic boolean getOptimistic()
getOptimistic in interface javax.jdo.Transactionpublic javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager in interface javax.jdo.Transactionpublic boolean getRetainValues()
getRetainValues in interface javax.jdo.Transactionpublic javax.transaction.Synchronization getSynchronization()
getSynchronization in interface javax.jdo.Transactionpublic boolean isActive()
isActive in interface javax.jdo.Transactionpublic void rollback()
rollback in interface javax.jdo.Transactionjavax.jdo.JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is not active.public void setNontransactionalRead(boolean nontransactionalRead)
JDO: If true, allow persistent instances to be read without a transaction active. If an implementation does not support this option, a JDOUnsupportedOptionException is thrown.
setNontransactionalRead in interface javax.jdo.TransactionnontransactionalRead - the value of the nontransactionalRead propertypublic void setNontransactionalWrite(boolean arg1)
setNontransactionalWrite in interface javax.jdo.Transactionpublic void setOptimistic(boolean arg1)
setOptimistic in interface javax.jdo.Transactionpublic void setRetainValues(boolean arg1)
setRetainValues in interface javax.jdo.Transactionpublic void setSynchronization(javax.transaction.Synchronization synchronizationListener)
The afterCompletion method is called after performing state transitions of persistent and transactional instances, following the data store commit or rollback operation.
Only one Synchronization instance can be registered with the Transaction. If the application requires more than one instance to receive synchronization callbacks, then the single application instance is responsible for managing them, and forwarding callbacks to them.
setSynchronization in interface javax.jdo.Transactionpublic UnitOfWork getUnitOfWork()
public void setUnitOfWork(UnitOfWork newUnitOfWork)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||