Home » Search

About Transaction

11-20 of 200Refresh
JDO Doc
45

getIsolationLevel()

Method javax.jdo.Transaction String getIsolationLevel() Get the value for transaction isolation level for this transaction. Returns: the transaction isolation level Since: JDO 2.2 See Also: setIsolationLevel(String)
JDO Doc
45

rollback()

Method javax.jdo.Transaction void rollback() Roll back the current transaction. Throws: JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is not active. Since: JDO 1.0
JDO Doc
45

setRollbackOnly()

Method javax.jdo.Transaction void setRollbackOnly() Sets the rollback-only status of the transaction to true. After this flag is set to true, the transaction can no longer be committed, and any attempt to commit the transaction will throw JDOFatalDataStoreException. Since: JDO 2.0
JDO Doc
45

setSynchronization(sync)

Method javax.jdo.Transaction void setSynchronization(   Synchronization sync ) The user can specify a Synchronization instance to be notified on transaction completions. The beforeCompletion method ... after performing state transitions of persistent and transactional instances, following the data store
JDO Doc
44

getPersistenceManager()

Method javax.jdo.Transaction PersistenceManager getPersistenceManager() The Transaction instance is always associated with exactly one PersistenceManager. Returns: the PersistenceManager for this Transaction instance Since: JDO 1.0
JDO Doc
44

getRollbackOnly()

Method javax.jdo.Transaction boolean getRollbackOnly() Returns the rollback-only status of the transaction. When begun, the rollback-only status is false. Either the application or the JDO implementation may set this flag using setRollbackOnly. Returns: true if the transaction has been marked for rollback. Since: JDO 2.0
JDO Doc
44

isActive()

Method javax.jdo.Transaction boolean isActive() Returns whether there is a transaction currently active. Returns: true if the transaction is active. Since: JDO 1.0
JDO Doc
44

javax.jdo.annotations.Transactional

javax.jdo.annotations Annotation Transactional Target: Fields (including property get methods) Annotation to indicate that a member (field or property) is transactional but not persistent. This corresponds to xml attribute persistence-modifier="transactional" of "field" and "property" elements
JDO Doc
44

setRestoreValues(restoreValues)

Method javax.jdo.Transaction void setRestoreValues(   boolean restoreValues ) If true, at rollback ... of the transaction, and the instances revert to transient. Additionally, fields of modified instances ... of the transaction. If false, at rollback, the values of fields of newly persistent instances are unchanged
JDO Doc
43

getNontransactionalRead()

Method javax.jdo.Transaction boolean getNontransactionalRead() If true, allows persistent instances to be read without a transaction active. Returns: the value of the nontransactionalRead property Since: JDO 1.0