ObjectDB Database Search

1-28 of 28 results

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.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

on which they were invoked). Flush Mode ( setFlushMode ) Changes made to a database using an EntityManager em can be visible ... 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.FlushModeType

:: setFlushMode (FlushModeType) Query:: setFlushMode (FlushModeType) Since: Jakarta Persistence (JPA) 1.0 Enum

jakarta.persistence.EntityManager

calling setFlushMode . For FlushModeType.COMMIT , the persistence context is flushed before ... Since: Jakarta Persistence (JPA) 3.2 void setFlushMode ( FlushModeType flushMode ) Set the flush mode

jakarta.persistence.TypedQuery

is negative. Since: Jakarta Persistence (JPA) 1.0 TypedQuery setFlushMode ( FlushModeType flushMode ) Set ... regardless of the flush mode type in use for the entity manager. Overrides Query. setFlushMode

jakarta.persistence.StoredProcedureQuery

- if the argument is negative. Since: Jakarta Persistence (JPA) 1.0 StoredProcedureQuery setFlushMode ... . setFlushMode Parameters: flushMode - flush mode Returns: the same query instance. Since: Jakarta

jakarta.persistence.Query

Persistence (JPA) 1.0 Query setFlushMode ( FlushModeType flushMode ) Set the flush mode type to be used

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

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 ... emThree = emf.createEntityManager(); emThree.getTransaction().begin(); emThree. setFlushMode

Entity has be persistended,but query not fetched?

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

Empty temporary dat files in the temp folder

.createEntityManagerFactory(db + ";drop");   EntityManager em = emf.createEntityManager();   em. setFlushMode ... .createEntityManager();   em. setFlushMode (FlushModeType.AUTO);   em.getTransaction().begin();  

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

Database(*.odb) file size on disk

. setFlushMode (FlushModeType.AUTO);   int objects = 1000;   int loops = 3;   for (int iteration = 0; iteration

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

();   entityManager. setFlushMode (FlushModeType.AUTO);   return entityManager; } private static

Merge with Parent/Child entities not possible

; EntityManager entityManager = emf.createEntityManager();   entityManager. setFlushMode (FlushModeType.AUTO

Query for objects persisted within the same transaction

/java/jpa/query/setting#Flush_Mode_ setFlushMode support Support Thanks, The part about performance in

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

= em .createNamedQuery("numberOfMapItems"); q. setFlushMode (FlushModeType.AUTO); try { long l = (Long

Remove a modified entity cause an optimistic lock exception

= emf.createEntityManager();         em. setFlushMode

Spring Transactions (@Transactional) within ObjectDB

the EntityManager :     em. setFlushMode (FlushModeType.AUTO); support Support I think I

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

(); em. setFlushMode (FlushModeType.AUTO); System.out.println("create and persist"); em.getTransaction

Upgrade to Java 8 won't run

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

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

"); q.setParameter("container", this); q. setFlushMode (FlushModeType.AUTO); try { long l = (Long) q

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

.createEntityManagerFactory("objectdb:./db.tmp"); EntityManager em = emf.createEntityManager(); em. setFlushMode