ObjectDB Database Search

51-100 of 200 results

Pessimistic lock

Pessimistic lock

WORM (Write once read many) support

WORM (Write once read many) support

Internal ObjectDB error by read the primary key

Internal ObjectDB error by read the primary key

Failed to read the value of field using reflection (error 363)

Failed to read the value of field using reflection (error 363)

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal ... . But you can disable optimistic locking in the server configuration .   support Support read the documentation ... - since someone can change the object just after the refresh . In that case - use pessimistic locks. support

Chapter 1 - Quick Tour

This chapter demonstrates basic ObjectDB and JPA concepts by introducing a simple example program. After reading this chapter you should be able to write basic programs that create, open and close ObjectDB databases and perform basic CRUD operations (Create/Store, Retrieve, Update and Delete

Optimistic locking: prevent version increment on entity collection attribute

create the readings in one call and I try to read them in another call. I checked the database and all the entities are created (document and readings ) but when I try to get the collection of readings null is returned. I have tried to clear the entity manager in the second call to make sure the reading

InterfaceRef jakarta.persistence.Query

context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails ... been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction

InterfaceRef jakarta.persistence.TypedQuery

PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if the query ... context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails

Optimistic lock failed for object

pessimistic locking only? I've tried various xml configurations, and also various transaction ... , that setting is for optimistic locking. My question was about pessimistic locking (specifically, pessimistic write locking). Your documentation seems unclear about that.   dmoshal David Moshal

EntityManager.lock(entity,lockMode,options) - JPA Method

the specified plain. If a pessimistic lock mode type is specified and the entity contains a version attribute ... . If these checks fail, the OptimisticLockException is thrown. If the lock mode type is pessimistic ... - if the entity does not exist in the database when pessimistic locking is performed

EntityManager.lock(entity,lockMode,properties) - JPA Method

properties. If a pessimistic lock mode type is specified and the entity contains a version attribute ... . If these checks fail, the OptimisticLockException is thrown. If the lock mode type is pessimistic ... EntityNotFoundException - if the entity does not exist in the database when pessimistic locking

EntityManager.lock(entity,lockMode) - JPA Method

context, obtaining the specified plain. If a pessimistic lock mode type is specified and the entity ... . If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... EntityNotFoundException - if the entity does not exist in the database when pessimistic locking

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects ... .getSelectedValue(),       LockModeType. PESSIMISTIC _WRITE); . . } //doEdit ... , LockModeType. PESSIMISTIC _WRITE);         System.out.println

OptimisticLockException

guess I should read doco more. I ran into the same error from a pessimistically locked entity (global ... . Also have the Explorer open Questions: a) what is it about? b) is there a setting for pessimistic mode? In my app ... on pessimistically tracked entity.   Modified conf file, and got the test case working perfectly.  

Optimistic locking failure

and roll back. T1 T2 ---------------------------------------------------------- READ (A) version=1 value=0 | READ (B) version=1 value=0 | | READ (A) version=1 value=0 | READ (B) version=1 value=0 | B ... Thread[Thread-2,5,main] READ   A1 version=1 value=0 Thread[Thread-2,5,main] READ   B2 version=1

EntityManager.find(entityClass,primaryKey,options) - JPA Method

is pessimistic and the entity has a version attribute, the persistence provider must perform optimistic ... is thrown. If the lock mode type is pessimistic and the entity instance is found ... check fails PessimisticLockException - if pessimistic locking fails and the transaction is rolled

EntityManager.find(entityGraph,primaryKey,options) - JPA Method

there. If the entity is found within the persistence context and the lock mode type is pessimistic and the entity ... mode type is pessimistic and the entity instance is found but cannot be locked ... version check fails PessimisticLockException - if pessimistic locking fails and the transaction is rolled

EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method

within the persistence context and the lock mode type is pessimistic and the entity has a version attribute ... . If these checks fail, the OptimisticLockException is thrown. If the lock mode type is pessimistic ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

there. If the entity is found within the persistence context and the lock mode type is pessimistic ... . If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic

Pessimestic Locking doesn't release when application unexpectedly terminates.

; support Support A possible solution (which is currently not implemented) is to use pessimistic locking ... want to use Pessimistic Lock as a way of enforcing a cluster wide singleton of services, a pessimistic ... adds automatic release of pessimistic locks on client-server disconnection. The locks

UTF Error

.InternalException: Error reading UTF string at com.objectdb.o.BYR.U(BYR.java:1217) at com.objectdb.o.BYR.U(BYR.java ... ) WARNING: javax.ejb.EJBException: Error reading UTF string at com.sun.ejb.containers ... .run(Thread.java:829) Caused by: com.objectdb.o.InternalException: Error reading UTF string at com

EntityManager.refresh(entity,options) - JPA Method

. If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic

EntityManager.refresh(entity,lockMode,properties) - JPA Method

is pessimistic and the entity instance is found but cannot be locked: the PessimisticLockException is thrown ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if an unsupported lock call is made Since: JPA 2.0

EntityManager.refresh(entity,lockMode) - JPA Method

. If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if an unsupported lock call is made Since: JPA 2.0

EnumRef jakarta.persistence.PessimisticLockScope

the values of the jakarta.persistence.lock.scope property for pessimistic locking. This property ... .0 NORMAL This value defines the default behavior for pessimistic locking. The persistence provider

Query.getResultStream() - JPA Method

to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled

Query.getSingleResult() - JPA Method

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

Query.getResultList() - JPA Method

to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled

TypedQuery.getSingleResult() - JPA Method

- if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking

TypedQuery.getResultList() - JPA Method

context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails

TypedQuery.getResultStream() - JPA Method

PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException

InterfaceRef jakarta.persistence.StoredProcedureQuery

PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException

Query.getSingleResultOrNull() - JPA Method

context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails

TypedQuery.getSingleResultOrNull() - JPA Method

- if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking

EnumRef jakarta.persistence.CacheStoreMode

interacts with the second-level cache when data is read from the database and when data is written ... the cache when read from the database and when written to the database. Force refresh of cache for items read from database. Since: JPA 2.0 USE Insert entity data into cache when read from database

EnumConstRef jakarta.persistence.PessimisticLockScope.NORMAL

JPA Enum Constant in jakarta.persistence.PessimisticLockScope NORMAL This value defines the default behavior for pessimistic locking. The persistence provider must lock the database row(s) that correspond to the non-collection-valued persistent state of that instance. If a joined inheritance

ClassRef jakarta.persistence.EntityNotFoundException

when EntityManager.lock is used with pessimistic locking is used and the entity no longer exists in

ClassRef jakarta.persistence.LockTimeoutException

JPA Exception LockTimeoutException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta.persistence.PersistenceException ∟  jakarta.persistence.LockTimeoutException Thrown by the persistence provider when a pessimistic

ClassRef jakarta.persistence.PessimisticLockException

when a pessimistic locking conflict occurs. This exception may be thrown as part of an API call, a flush or

ClassRef jakarta.persistence.PersistenceConfiguration

. Since: JPA 3.2 JDBC_USER Username for JDBC authentication. Since: JPA 3.2 LOCK_TIMEOUT Default pessimistic

FieldRef jakarta.persistence.PersistenceConfiguration.LOCK_TIMEOUT

JPA Static Field in jakarta.persistence.PersistenceConfiguration LOCK_TIMEOUT Default pessimistic lock timeout hint. Since: JPA 3.2

EnumRef jakarta.persistence.CacheRetrieveMode

with the second-level cache when data is read from the database via the EntityManager.find methods and execution of queries. USE indicates that data may be read from the second-level cache. BYPASS indicates that data may not be read from the second-level cache. Enumerates legal values of the property

Step 7: Run the Spring Web App

enabled without specifying a Java agent. This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

EnumConstRef jakarta.persistence.CacheStoreMode.REFRESH

JPA Enum Constant in jakarta.persistence.CacheStoreMode REFRESH Insert/update entity data held in the cache when read from the database and when written to the database. Force refresh of cache for items read from database. Since: JPA 2.0

EnumConstRef jakarta.persistence.CacheStoreMode.USE

JPA Enum Constant in jakarta.persistence.CacheStoreMode USE Insert entity data into cache when read from database and insert/update entity data when written to the database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: JPA 2.0

Best practise loading big data

. One is to stupidly commit the transaction after a certain number of read accesses (every 10000 read access ... updates to the database or it is read only. If it is a read only operation, do you really need commit ... for posting questionable code snippets. I have repaired it. In this scenario the data is only read

AnnotationRef jakarta.persistence.Version

, that is, if the version or timestamp held in the database changes between reading the state of an entity

EnumConstRef jakarta.persistence.CacheRetrieveMode.USE

JPA Enum Constant in jakarta.persistence.CacheRetrieveMode USE Read entity data from the cache: this is the default behavior. Since: JPA 2.0

ObjectDB 2 JDO Manual

however, married to JDO, although I think it's good. Its lack of true (before commit) pessimistic locking ... (above). I've also since starting with JDO, a couple of weeks ago, read most of the ObjectDB JPA