About transaction

151-160 of 200Refresh
JPA Doc
4

getResultList()

back TransactionRequiredException - if a lock mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException ... execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.0
JPA Doc
4

getSingleResult()

mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails ... value set and the transaction is rolled back Since: JPA 1.0
JPA Doc
4

getSingleResult()

has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.0
JDO Doc
4

getTransactionalObjectId(pc)

. If the object identity is being changed in the transaction, by the application modifying one or more of the application key fields, then this method returns the current identity in the transaction. If there is no transaction in progress, or if none of the key fields is being modified
JDO Doc
4

isTransactional(pc)

Static Method javax.jdo.JDOHelper boolean isTransactional(   Object pc ) Tests whether the parameter instance is transactional. Instances whose state is associated with the current transaction return ... is transactional. Since: JDO 1.0 See Also: PersistenceCapable.jdoIsTransactional()
JPA Doc
4

javax.persistence.PersistenceContext

PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. (Optional) Specifies whether a transaction-scoped ... .PersistenceContextType.TRANSACTION Since: JPA 1.0 String unitName (Optional) The name
JDO Doc
4

jdoIsTransactional()

Method javax.jdo.spi.PersistenceCapable boolean jdoIsTransactional() Tests whether this object is transactional. Instances whose state is associated with the current transaction return true. Transient instances return false. Returns: true if this instance is transactional. Since: JDO 1.0
JPA Doc
4

lock(entity, lockMode)

if the database locking failure causes transaction-level rollback the LockTimeoutException will be thrown ... is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException ... fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails
JPA Doc
4

lock(entity, lockMode, properties)

transaction-level rollback the LockTimeoutException will be thrown if the database locking failure causes ... is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException ... and the transaction is rolled back LockTimeoutException - if pessimistic locking fails
JDO Doc
4

makeNontransactional(pc)

Method javax.jdo.PersistenceManager void makeNontransactional(   Object pc ) Make an instance non-transactional after commit. Normally, at transaction completion, instances are evicted from the cache ... at transaction completion. Instead, the instance remains in the cache with nontransactional state