ObjectDB Database Search
51-100 of 200 resultsjakarta.persistence.PersistenceContext whether the persistence context 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 | |
jakarta.persistence.EntityManager.getLockMode(Object) ( Object entity ) Get the current lock mode held by this persistence context on the given ... currently held. Throws: IllegalArgumentException - if a transaction is active but the given instance ... if the entity manager has not been joined to the current transaction. Since: Jakarta Persistence (JPA) 2.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.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.criteria.CriteriaBuilder.currentDate() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentDate() Create expression to return current date. Returns: expression for current date. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.currentTime() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentTime() Create expression to return current time. Returns: expression for current time. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.localDate() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression localDate() Create expression to return current local date. Returns: expression for current date. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.localTime() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression localTime() Create expression to return current local time. Returns: expression for current time. Since: Jakarta Persistence (JPA) 1.0 | |
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.FlushModeType is unspecified. If there is no transaction active or the persistence context is not joined to the current | |
jakarta.persistence.LockTimeoutException. The current transaction, if one is active, will be not be marked for rollback. Since: Jakarta Persistence | |
jakarta.persistence.EntityNotFoundException and the entity no longer exists in the database. The current transaction, if one is active | |
jakarta.persistence.TypedQuery properties and hints. Since: Jakarta Persistence (JPA) 2.0 LockModeType getLockMode () Get the current | |
jakarta.persistence.PrimaryKeyJoinColumn of the primary key column of the current table. Defaults to the same name as the primary key column | |
jakarta.persistence.Query () Get the current lock mode for the query. Returns null if a lock mode has not been set on the query | |
jakarta.persistence.QueryTimeoutException the persistence provider when a query times out and only the statement is rolled back. The current | |
jakarta.persistence.StoredProcedureQuery () Get the current lock mode for the query. Returns null if a lock mode has not been set on the query | |
jakarta.persistence.NonUniqueResultException and there is more than one result from the query. This exception does not cause the current | |
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 | |
java 8 LocalDateTime is not working in query to translate a value, which is at least a workaround. But ObjectDB currently doesn't support ... . Timestamp ; import java.time.LocalDateTime; import java.util.List; public class MyTestCase {   ... ; @Override public java.sql. Timestamp convertToDatabaseColumn | |
jakarta.persistence.EntityManagerFactory.runInTransaction(Consumer) with the caller, then the EntityManager is associated with this current transaction. If the given function | |
jakarta.persistence.EntityTransaction.commit() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void commit() Commit the current resource transaction, writing any unflushed changes to the database. Throws: IllegalStateException - if EntityTransaction.isActive is false. RollbackException - if the commit fails. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityTransaction.rollback() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void rollback() Roll back the current resource transaction. Throws: IllegalStateException - if EntityTransaction.isActive is false. PersistenceException - if an unexpected error condition is encountered. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManagerFactory.callInTransaction(Function), then the EntityManager is associated with this current transaction. If the given function returns | |
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.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.EntityManager.joinTransaction() to associate it with the current JTA transaction. Throws: TransactionRequiredException | |
jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType) with the current JTA transaction Returns: entity manager instance. Throws: IllegalStateException | |
jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType,Map) - how and when the entity manager should be synchronized with the current JTA transaction map - properties | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...) - 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.refresh(Object,LockModeType) on an extended entity manager that has not been joined to the current transaction and any lock mode other than NONE was specified. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.EntityManager.getFlushMode() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager FlushModeType getFlushMode() Get the flush mode that applies to all objects contained in the persistence context. Returns: the current FlushModeType . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.lock(Object,LockModeType) to the current transaction. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,Map) to the current transaction. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.EntityManager.contains(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager boolean contains ( Object entity ) Determine if the given object is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map) on an extended entity manager that has not been joined to the current transaction and any lock mode other than NONE was specified. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.EntityManager.refresh(Object,RefreshOption...) entity manager that has not been joined to the current transaction and any lock mode other than NONE was specified. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.EntityManager.getProperties() of properties and hints currently in effect. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.SynchronizationType.SYNCHRONIZED Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.SynchronizationType.UNSYNCHRONIZED Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.merge(T) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T merge ( T entity ) Merge the state of the given new or detached entity instance into the current persistence context, resulting in, respectively, an insert or possible update when the persistence context | |
jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...) other than NONE is specified or if invoked on an entity manager which has not been joined to the current | |
jakarta.persistence.EntityManager.flush() has not been joined to the current transaction. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.find(Class,Object,LockModeType) other than NONE is specified or if invoked on an entity manager which has not been joined to the current transaction | |
jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map) which has not been joined to the current transaction and a lock mode other than NONE is specified. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.EntityManager.find(Class,Object,FindOption...) other than NONE is specified or if invoked on an entity manager which has not been joined to the current | |
jakarta.persistence.Query.getLockMode() Jakarta Persistence (JPA) Method in jakarta.persistence.Query LockModeType getLockMode() Get the current lock mode for the query. Returns null if a lock mode has not been set on the query object. Returns: lock mode. Throws: IllegalStateException - if the query is found not to be a Jakarta | |
jakarta.persistence.PrimaryKeyJoinColumn.name Jakarta Persistence (JPA) Method in jakarta.persistence.PrimaryKeyJoinColumn String name (Optional) The name of the primary key column of the current table. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as |