ObjectDB Database Search
101-150 of 200 resultsEntityManager.find(entityGraph,primaryKey,options) - JPA Method: the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... TransactionRequiredException - if there is no transaction and a lock mode other than {@code NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction | |
EnumRef jakarta.persistence.FlushModeType within a transaction , if AUTO is set on the Query or TypedQuery object, or if the flush mode setting ... is unspecified. If there is no transaction active or the persistence context is not joined to the current transaction , the persistence provider must not flush to the database. See Also: EntityManager | |
EntityManager.lock(entity,lockMode,properties) - JPA Method if the database locking failure causes transaction -level rollback the LockTimeoutException ia thrown ... - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction ... - if pessimistic locking fails and the transaction is rolled back LockTimeoutException | |
EntityManager.lock(entity,lockMode) - JPA Method: the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction ... - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic | |
PersistenceUnitInfo.getTransactionType() - JPA Method getTransactionType () Returns the transaction type of the entity managers created by the EntityManagerFactory . The transaction type corresponds to the transaction -type attribute in the persistence.xml file. Return: transaction type of the entity managers created by the EntityManagerFactory Note: This method | |
EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method if the database locking failure causes transaction -level rollback the LockTimeoutException is thrown ... TransactionRequiredException - if there is no transaction and a lock mode other than {@code NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction and a lock mode | |
EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method: the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... - if there is no transaction and a lock mode other than {@code NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction and a lock mode other than {@code | |
Query.getSingleResultOrNull() - JPA Method - if a lock mode other than {@code NONE} has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails | |
EntityManager.runWithConnection(action) - JPA Method is associated with a transaction , the action is executed in the context of the transaction . The given ... roll back the transaction . If the given action throws an exception, the persistence provider must mark the transaction for rollback. Parameters: action - the action - the connection type, usually | |
EntityManager.callWithConnection(function) - JPA Method . 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 action throws an exception | |
EntityManager.joinTransaction() - JPA Method manager that a JTA transaction is active and join the persistence context to it. This method ... transaction or on an entity manager of type SynchronizationType.UNSYNCHRONIZED to associate it with the current JTA transaction . Throws: TransactionRequiredException - if there is no active transaction Since: JPA 1.0 | |
TypedQuery.getSingleResultOrNull() - JPA Method back TransactionRequiredException - if a lock mode other than {@code NONE} has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking | |
Query.executeUpdate() - JPA Method TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction ... value set and the transaction is rolled back Since: JPA 1.0 | |
ClassRef jakarta.persistence.PersistenceConfiguration may be provided via () . Return: the transaction type Since: JPA 3.2 PersistenceConfiguration transactionType ( PersistenceUnitTransactionType transactionType) Specify the transaction type for the persistence unit. Parameters: transactionType - the transaction type Return: this configuration | |
StoredProcedureQuery.executeUpdate() - JPA Method - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException ... back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1 | |
EntityManager.getLockMode(entity) - JPA Method: TransactionRequiredException - if there is no active transaction or if the entity manager has not been joined to the current transaction IllegalArgumentException - if a transaction is active but the given instance is not a managed entity Since: JPA 2.0 | |
EntityTransaction.setRollbackOnly() - JPA Method 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 {@link #isActive()} is false Since: JPA 1.0 | |
EntityManager.isJoinedToTransaction() - JPA Method 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. Return: boolean Since: JPA 2.1 | |
ClassRef jakarta.persistence.LockTimeoutException locking conflict occurs that does not result in 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 | |
AnnotationAttrRef jakarta.persistence.NamedQuery.lockMode JPA Annotation Attribute in jakarta.persistence.NamedQuery LockModeType lockMode default LockModeType.NONE (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction . Since: JPA 2.0 | |
AnnotationRef jakarta.persistence.NamedQuery. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction . Since: JPA 2.0 String name default null (Required | |
EntityManager.merge(entity) - JPA Method is not an entity or is a removed entity TransactionRequiredException - if there is no transaction when invoked on a container-managed entity manager of that is of type {@link PersistenceContextType# TRANSACTION } Since: JPA 1.0 | |
EntityManager.persist(entity) - JPA Method - if there is no transaction when invoked on a container-managed entity manager that is of type {@link PersistenceContextType# TRANSACTION } Since: JPA 1.0 | |
PersistenceConfiguration.transactionType(transactionType) - JPA Method JPA Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration transactionType ( PersistenceUnitTransactionType transactionType ) Specify the transaction type for the persistence unit. Parameters: transactionType - the transaction type Return: this configuration Since: JPA 3.2 | |
EntityManager.remove(entity) - JPA Method-managed entity manager of type {@link PersistenceContextType# TRANSACTION } and there is no transaction Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.PersistenceContext.type JPA Annotation Attribute in jakarta.persistence.PersistenceContext PersistenceContextType type default PersistenceContextType. TRANSACTION (Optional) Specifies whether a transaction -scoped persistence context or an extended persistence context is to be used. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.PersistenceContext.synchronization is always automatically 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. Since: JPA 2.1 | |
EntityTransaction.getRollbackOnly() - JPA Method JPA Method in jakarta.persistence.EntityTransaction boolean getRollbackOnly () Determine whether the current resource transaction has been marked for rollback. Return: boolean indicating whether the transaction has been marked for rollback Throws: IllegalStateException - if {@link #isActive()} is false Since: JPA 1.0 | |
EntityManagerFactory.getTransactionType() - JPA Method 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: JPA 3.2 | |
EntityManager.refresh(entity,properties) - JPA Method TransactionRequiredException - if there is no transaction when invoked on a container-managed entity manager of type {@link PersistenceContextType# TRANSACTION } EntityNotFoundException - if the entity no longer exists in the database Since: JPA 2.0 | |
EntityManager.refresh(entity) - JPA Method - if there is no transaction when invoked on a container-managed entity manager of type {@link PersistenceContextType# TRANSACTION } EntityNotFoundException - if the entity no longer exists in the database Since: JPA 1.0 | |
PersistenceUnitInfo.getNonJtaDataSource() - JPA Method a JTA transaction . The data source corresponds to the named non-jta-data-source element in ... source to be used by the persistence provider for accessing data outside a JTA transaction Since: JPA 1.0 | |
EntityTransaction.isActive() - JPA Method JPA Method in jakarta.persistence.EntityTransaction boolean isActive () Indicate whether a resource transaction is in progress. Return: boolean indicating whether transaction is in progress Throws: PersistenceException - if an unexpected error condition is encountered Since: JPA 1.0 | |
EntityManager.flush() - JPA Method JPA Method in jakarta.persistence.EntityManager void flush () Synchronize changes held in the persistence context to the underlying database. Throws: TransactionRequiredException - if there is no transaction or if the entity manager has not been joined to the current transaction PersistenceException - if the flush fails Since: JPA 1.0 | |
EntityManager.close() - JPA Method manager is joined to an active transaction , the persistence context remains managed until the transaction | |
ClassRef jakarta.persistence.EntityExistsException.persist is called and the entity already exists. The current transaction , if one is active ... may be thrown at flush or commit time. The current transaction , if one is active and the persistence context | |
Unexpected exception (Error 990) com.objectdb.o.InternalException(PatternApplicationServiceImpl.java:1) at com.btc.ep.base. transactions .annotations.TransactionAspect.ajc$around$com_btc_ep_base_ transactions _annotations_TransactionAspect$1$adc4043cproceed(TransactionAspect.aj:90) at com.btc.ep.base. transactions .annotations.TransactionAspect.ajc$around$com_btc_ep_base | |
EntityTransaction.rollback() - JPA Method JPA Method in jakarta.persistence.EntityTransaction void rollback () Roll back the current resource transaction . Throws: IllegalStateException - if {@link #isActive()} is false PersistenceException - if an unexpected error condition is encountered Since: JPA 1.0 | |
EntityTransaction.commit() - JPA Method JPA Method in jakarta.persistence.EntityTransaction void commit () Commit the current resource transaction , writing any unflushed changes to the database. Throws: IllegalStateException - if {@link #isActive()} is false RollbackException - if the commit fails Since: JPA 1.0 | |
EntityTransaction.begin() - JPA Method JPA Method in jakarta.persistence.EntityTransaction void begin () Start a resource transaction . Throws: IllegalStateException - if {@link #isActive()} is true Since: JPA 1.0 | |
ClassRef jakarta.persistence.EntityNotFoundException the database. The current transaction , if one is active and the persistence context has been joined | |
ClassRef jakarta.persistence.PessimisticLockException at commit time. The current transaction , if one is active, is marked for rollback. Since: JPA 2.0 Public | |
EnumConstRef jakarta.persistence.SynchronizationType.SYNCHRONIZED JPA Enum Constant in jakarta.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA 2.1 | |
EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method should be synchronized with the current JTA transaction map - properties for entity manager Return | |
ClassRef jakarta.persistence.OptimisticLockException at commit time. The current transaction , if one is active, will be marked for rollback | |
EntityManagerFactory.createEntityManager(synchronizationType) - JPA Method JTA transaction Return: entity manager instance Throws: IllegalStateException - if the entity | |
EnumConstRef jakarta.persistence.SynchronizationType.UNSYNCHRONIZED JPA Enum Constant in jakarta.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: JPA 2.1 | |
StoredProcedureQuery.hasMoreResults() - JPA Method the query timeout value set and the transaction is rolled back Since: JPA 2.1 | |
ClassRef jakarta.persistence.NonUniqueResultException the current transaction , if one is active, to be marked for rollback. See Also: Query.getSingleResult | |
StoredProcedureQuery.getSingleResult() - JPA Method is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1 |