ObjectDB Database Search
101-150 of 200 resultsjakarta.persistence.EntityManager.callWithConnection(ConnectionFunction) java.sql.Connection . If this EntityManager is associated with a transaction , the function is executed in the context of the transaction . The given function should close any resources it creates, but should not close the connection itself, nor commit or roll back the transaction . If the given | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...) if the database locking failure causes transaction -level rollback the LockTimeoutException is thrown ... fails and the transaction is rolled back. EntityNotFoundException - if the entity does not exist in ... - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction . Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.EntityManager.lock(Object,LockModeType): the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... - if pessimistic locking fails and the transaction is rolled back. EntityNotFoundException ... . TransactionRequiredException - if there is no transaction or if invoked on an entity manager which has not been joined | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,Map) if the database locking failure causes transaction -level rollback the LockTimeoutException ia thrown ... - if pessimistic locking fails and the transaction is rolled back. EntityNotFoundException - if the entity does ... . TransactionRequiredException - if there is no transaction or if invoked on an entity manager which has not been joined | |
jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...): the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic ... version check fails. TransactionRequiredException - if there is no transaction and a lock mode | |
jakarta.persistence.EntityManager.find(Class,Object,LockModeType) if the database locking failure causes transaction -level rollback the LockTimeoutException is thrown ... and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails and only the statement ... fails. TransactionRequiredException - if there is no transaction and a lock mode | |
jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map): the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... : PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException ... - if there is no transaction and a lock mode other than NONE is specified or if invoked on an entity manager | |
jakarta.persistence.EntityManager.find(Class,Object,FindOption...) but cannot be locked: the PessimisticLockException is thrown if the database locking failure causes transaction -level ... - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic ... version check fails. TransactionRequiredException - if there is no transaction and a lock mode | |
jakarta.persistence.Query.getSingleResultOrNull() back. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or | |
jakarta.persistence.Query.getResultList() and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails ... value set and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined | |
jakarta.persistence.Query.getResultStream() DELETE statement. PessimisticLockException - if pessimistic locking fails and the transaction ... and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction | |
jakarta.persistence.Query.getSingleResult() fails and the transaction is rolled back. NoResultException - if there is no result. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled ... and there is no transaction or the persistence context has not been joined to the transaction . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.LockTimeoutException transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time. The current transaction , if one is active, will be not be marked for rollback. Since: Jakarta Persistence | |
jakarta.persistence.EntityExistsException. The current transaction , if one is active, will be marked for rollback. If the entity already exists ... the EntityExistsException or another PersistenceException may be thrown at flush or commit time. The current transaction | |
jakarta.persistence.NamedQuery other than LockModeType.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction . Default: LockModeType.NONE Since: Jakarta Persistence (JPA) 2 | |
jakarta.persistence.StoredProcedureQuery.executeUpdate() - if the query execution exceeds the query timeout value set and the transaction is rolled back. TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction . QueryTimeoutException - if the statement execution exceeds the query timeout | |
jakarta.persistence.EntityTransaction.setRollbackOnly() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void setRollbackOnly() Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back. Throws: IllegalStateException - if EntityTransaction.isActive is false. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.isJoinedToTransaction() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager boolean isJoinedToTransaction() Determine whether the entity manager is joined to the current transaction . Returns false if the entity manager is not joined to the current transaction or if no transaction is active. Returns: boolean. Since: Jakarta Persistence (JPA) 2.1 | |
jakarta.persistence.EntityManager.getLockMode(Object) currently held. Throws: IllegalArgumentException - if a transaction is active but the given instance is not a managed entity. TransactionRequiredException - if there is no active transaction or if the entity manager has not been joined to the current transaction . Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.Query.executeUpdate() and the transaction is rolled back. TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction . QueryTimeoutException - if the statement execution | |
jakarta.persistence.PersistenceConfiguration.transactionType() Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceUnitTransactionType transactionType() The transaction type . If PersistenceUnitTransactionType.JTA , a JTA ... via PersistenceConfiguration.nonJtaDataSource . Returns: the transaction type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceContext.type Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction -scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType. TRANSACTION Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceContext.synchronization synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the EntityManager.joinTransaction method. Default | |
jakarta.persistence.EntityManagerFactory.getTransactionType() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory PersistenceUnitTransactionType getTransactionType() The type of transaction management used by this persistence unit, either resource-local transaction management, or JTA. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.EntityTransaction.getRollbackOnly() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction boolean getRollbackOnly() Determine whether the current resource transaction has been marked for rollback. Returns: boolean indicating whether the transaction has been marked for rollback. Throws: IllegalStateException | |
jakarta.persistence.EntityTransaction.isActive() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction boolean isActive() Indicate whether a resource transaction is in progress. Returns: boolean indicating whether transaction is in progress. Throws: PersistenceException - if an unexpected error condition is encountered. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.close() is joined to an active transaction , the persistence context remains managed until the transaction completes | |
jakarta.persistence.EntityManager.refresh(Object) - if there is no transaction when invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.refresh(Object,Map) - if there is no transaction when invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION . Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.NamedQuery.lockMode.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction . Default: LockModeType.NONE Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.EntityManager.persist(Object) - if there is no transaction when invoked on a container-managed entity manager that is of type PersistenceContextType. TRANSACTION . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.merge(T) - if there is no transaction when invoked on a container-managed entity manager of that is of type PersistenceContextType. TRANSACTION . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.remove(Object) - if invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION and there is no transaction . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.flush() - if the flush fails. TransactionRequiredException - if there is no transaction or if the entity manager has not been joined to the current transaction . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceConfiguration.transactionType(PersistenceUnitTransactionType) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration transactionType ( PersistenceUnitTransactionType transactionType ) Specify the transaction type for the persistence unit. Parameters: transactionType - the transaction type | |
jakarta.persistence.PessimisticLockException may be thrown as part of an API call, a flush or at commit time. The current transaction , if one is active | |
jakarta.persistence.EntityNotFoundException and the entity no longer exists in the database. The current transaction , if one is active | |
jakarta.persistence.Version Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Version Implemented Interfaces: Annotation Target: Method, Field Declares the version field or property of an entity class, which is used to detect optimistic lock failures, ensuring the integrity of optimistic transactions . The version | |
jakarta.persistence.QueryTimeoutException transaction , if one is active, will be not be marked for rollback. Since: Jakarta Persistence (JPA) 2 | |
jakarta.persistence.TransactionRequiredException: Serializable Thrown by the persistence provider when a transaction is required but is not active | |
jakarta.persistence.NonUniqueResultException transaction , if one is active, to be marked for rollback. See Also: Query::getSingleResult() TypedQuery | |
jakarta.persistence.NoResultException and there is no result to return. This exception does not cause the current transaction , if one is active | |
jakarta.persistence.OptimisticLockException may be thrown as part of an API call, a flush or at commit time. The current transaction , if one is active | |
jakarta.persistence.PersistenceException , NonUniqueResultException , LockTimeoutException , and QueryTimeoutException , cause the current transaction | |
jakarta.persistence.StoredProcedureQuery.execute() the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query | |
jakarta.persistence.StoredProcedureQuery.hasMoreResults() the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query | |
jakarta.persistence.StoredProcedureQuery.getUpdateCount() and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query | |
jakarta.persistence.StoredProcedureQuery.getResultList() and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout | |
jakarta.persistence.StoredProcedureQuery.getSingleResult() and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query | |
jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull() and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout |