ObjectDB Database Search

1-35 of 35 results

jakarta.persistence.FlushModeType

Jakarta Persistence (JPA) Enum jakarta.persistence. FlushModeType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence. FlushModeType Implemented Interfaces: Constable , Comparable , Serializable ... ::setFlushMode( FlushModeType ) Query::setFlushMode( FlushModeType ) Since: Jakarta Persistence (JPA) 1.0 Enum

jakarta.persistence.FlushModeType.FlushModeType()

Jakarta Persistence (JPA) Constructor in jakarta.persistence. FlushModeType FlushModeType () Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setFlushMode(FlushModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setFlushMode (    FlushModeType flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use for the entity manager

jakarta.persistence.StoredProcedureQuery.setFlushMode(FlushModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setFlushMode (    FlushModeType flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use

jakarta.persistence.EntityManager.setFlushMode(FlushModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void setFlushMode (    FlushModeType flushMode ) Set the flush mode that applies to all objects contained in the persistence context. Parameters: flushMode - flush mode Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.FlushModeType.COMMIT

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence. FlushModeType COMMIT Flushing to occur at transaction commit. The provider may flush at other times, but is not required to. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.FlushModeType.AUTO

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence. FlushModeType AUTO (Default) Flushing to occur at query execution. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Query.setFlushMode(FlushModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setFlushMode (    FlushModeType flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use for the entity manager. Parameters

Setting and Tuning of JPA Queries

to be visible to the query. Flush policy in JPA is represented by the FlushModeType enum, which has two values ... time flush at the EntityManager level: em. setFlushMode ( FlushModeType . AUTO ); // Enable query time flush at the level of a specific query: query. setFlushMode ( FlushModeType . AUTO ); Flushing

jakarta.persistence.EntityManager

calling setFlushMode . For FlushModeType .COMMIT , the persistence context is flushed before the transaction commits. For FlushModeType .AUTO , which is the default, the persistence context ... - if the entity manager has been closed. Since: Jakarta Persistence (JPA) 2.0 FlushModeType getFlushMode

jakarta.persistence.TypedQuery

) 2.0 The Running JPA Queries article explains how to use getFirstResult . FlushModeType getFlushMode ... is negative. Since: Jakarta Persistence (JPA) 1.0 TypedQuery setFlushMode ( FlushModeType flushMode ) Set

jakarta.persistence.Query

explains how to use getFirstResult . FlushModeType getFlushMode () Get the flush mode in effect ... Persistence (JPA) 1.0 Query setFlushMode ( FlushModeType flushMode ) Set the flush mode type to be used

jakarta.persistence.StoredProcedureQuery

. FlushModeType getFlushMode () Get the flush mode in effect for the query execution. If a flush mode has not ... ( FlushModeType flushMode ) Set the flush mode type to be used for the query execution. The flush mode type

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

Spring Transactions (@Transactional) within ObjectDB

to miss recent updates, because ObjectDB uses FlushModeType .COMMIT  by default. Try switching to  FlushModeType .AUTO . It is less efficient but it should guarantee that queries in ... how to FlushModeType .AUTO in ORM.xml we are not doing any annotations over our entity. Thanks in advance

jakarta.persistence.Query.getFlushMode()

Jakarta Persistence (JPA) Method in jakarta.persistence.Query FlushModeType getFlushMode() Get the flush mode in effect for the query execution. If a flush mode has not been set for the query object, returns the flush mode in effect for the entity manager. Returns: flush mode. Since: Jakarta Persistence (JPA) 2.0

Duplicate Entity class names causes Exception in Query

.createNamedQuery("objdbTest.Singleton.count", Long.class); q.setFlushMode( FlushModeType .AUTO); try { return ... demands we flush transaction to db if we wish to see its results   q.setFlushMode( FlushModeType .AUTO ... .setFlushMode( FlushModeType .COMMIT); //q.setHint(QueryHints.CACHE_USAGE, CacheUsage

Remove a modified entity cause an optimistic lock exception

the object. Flushing changes to the database (by running a query in FlushModeType .AUTO ?) Removing ... ( FlushModeType .AUTO);         em.getTransaction().begin();     ... FlushModeType .AUTO is set to the wrong EntityManager , i.e. to the one that is used to persist

remove & persist in same transaction => Attempt to reuse an existing primary key value

Hello Support, in our configuration ( FlushModeType .AUTO) is the execution of  em.find(Entity ... .EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. FlushModeType ; import ... (); em.setFlushMode( FlushModeType .AUTO); System.out.println("create and persist"); em.getTransaction

Update more than 10000 entities by an update query fails

.createEntityManager(); emOne.getTransaction().begin(); emOne.setFlushMode( FlushModeType .AUTO ... .createEntityManager(); emTwo.getTransaction().begin(); emTwo.setFlushMode( FlushModeType .AUTO); { String query ... ( FlushModeType .AUTO); { assertTrue(emThree.find(MyModelElement.class, 10000).isVisible()); assertTrue(emThree

Empty temporary dat files in the temp folder

.EntityManagerFactory; import javax.persistence. FlushModeType ; import javax.persistence.Persistence ... ( FlushModeType .AUTO);   em.getTransaction().begin();   MyEntity myEntity = new MyEntity ... .createEntityManager();   em.setFlushMode( FlushModeType .AUTO);   em.getTransaction().begin();  

Database(*.odb) file size on disk

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. FlushModeType ... .setFlushMode( FlushModeType .AUTO);   int objects = 1000;   int loops = 3;   for (int iteration = 0; iteration

Is it possible to remove parent/child entities without refresh?

.FetchType; import javax.persistence. FlushModeType ; import javax.persistence.GeneratedValue; import javax ... ();   entityManager.setFlushMode( FlushModeType .AUTO);   return entityManager; } private static

Merge with Parent/Child entities not possible

; import javax.persistence.FetchType; import javax.persistence. FlushModeType ; import javax.persistence ... ; EntityManager entityManager = emf.createEntityManager();   entityManager.setFlushMode( FlushModeType .AUTO

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

.persistence. FlushModeType ; import javax.persistence.Id; import javax.persistence.NamedQueries; import ... = em .createNamedQuery("numberOfMapItems"); q.setFlushMode( FlushModeType .AUTO); try { long l = (Long

Visibility of changes in Transaction is not visible to a JPA QL Query

(which is more efficient). support Support Yes, changing the Query to  FlushModeType .AUTO meant that the added items ... of the EntityManagerFactory /  EntityManager - FlushModeType .AUTO is specified. support Support

Entity has be persistended,but query not fetched?

.setFlushMode( FlushModeType .AUTO); query.getResultList();   maozf maozf The following example ... ;   query.setFlushMode( FlushModeType .AUTO);        

Should derived fields of an EmbeddedId be manually maintained by app code?

.persistence. FlushModeType ; import javax.persistence.Id; import javax.persistence.NamedQueries; import ... "); q.setParameter("container", this); q.setFlushMode( FlushModeType .AUTO); try { long l = (Long) q

Performance and memory usage of queries

javax.persistence. FlushModeType ; import javax.persistence.OneToMany; import javax.persistence

Exception on creation when running multithreaded

also had: typedQuery.setFlushMode( FlushModeType .AUTO); for the specific query.   If I change the logic

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

_EntityManager = m_EntityMgrFactory.createEntityManager(); m_EntityManager.setFlushMode( FlushModeType .COMMIT

Upgrade to Java 8 won't run

.createEntityManagerFactory (dbName) em = emf.createEntityManager() em.setFlushMode( FlushModeType .AUTO) ObjectDB

new objects not available in mappedBy associations

is set to use FlushModeType .AUTO ). support Support What does this mean: "Try to refresh ... . I'll try to find a 'real' example, and I'll also examine the FlushModeType .AUTO option as suggested ... FlushModeType .AUTO in the EntityManager resulted in a huge exception message. dmoshal David Moshal Hmm, I

Tracking changes to new collections (in enhancement mode) after flush

.createEntityManager(); em.setFlushMode( FlushModeType .AUTO); em.getTransaction().begin(); ModelElementImpl ... .createEntityManager(); em.setFlushMode( FlushModeType .AUTO); em.getTransaction().begin ... (); em.setFlushMode( FlushModeType .AUTO); em.getTransaction().begin

Sometimes cascade persist does not work during commit

( FlushModeType .AUTO); em.getTransaction().begin(); em.createQuery("DELETE from Object").executeUpdate