About transaction

11-20 of 200Refresh
JDO Doc
43

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
43

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
43

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
43

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
JDO Doc
43

getNontransactionalWrite()

Method javax.jdo.Transaction boolean getNontransactionalWrite() If true, allows persistent instances to be written without a transaction active. Returns: the value of the nontransactionalWrite property Since: JDO 1.0
JDO Doc
43

getOptimistic()

Method javax.jdo.Transaction boolean getOptimistic() Optimistic transactions do not hold data store locks until commit time. Returns: the value of the Optimistic property. Since: JDO 1.0
JDO Doc
43

getSynchronization()

Method javax.jdo.Transaction Synchronization getSynchronization() The user-specified Synchronization instance for this Transaction instance. Returns: the user-specified Synchronization instance. Since: JDO 1.0
JPA Doc
43

PersistenceContextType.TRANSACTION

Enum Constant javax.persistence.PersistenceContextType TRANSACTION Transaction-scoped persistence context Since: JPA 1.0
JDO Doc
43

setNontransactionalRead(nontransactionalRead)

Method javax.jdo.Transaction void setNontransactionalRead(   boolean nontransactionalRead ) If true, allow persistent instances to be read without a transaction active. If an implementation does not support this option, a JDOUnsupportedOptionException is thrown. Parameters: nontransactionalRead