ObjectDB Database Search

51-100 of 189 results

Optimistic lock failed

: Failed to commit transaction: Optimistic lock failed for object com.example.MyEntity#3 (object ... you, Carl     FastModel Ben Schreiber Hi, Locking in general is explained on: http://www.objectdb.com/java/jpa/persistence/ lock If you must avoid optimistic lock exceptions you can use

internal object DB locking in an embedded multi threaded application

locking . When profiling our app in JVisualVm we notice a large number of threads are blocked ... : BLOCKED at com.objectdb.o.MST.Vb(MST.java:1293) - waiting to lock (a com.objectdb.o.LKM) owned by ... .o.LFL.R(LFL.java:996) at com.objectdb.o.SFL.ah(SFL.java:998) - locked (a com.objectdb.o.LFL) at com

Undeployment of an remote Glassfish application locks objectdb log file

. The locked file problem does not exist if I deploy the WebApplication on an local Glassfish server. How can I undeploy the application without getting the logfile locked ? // Parwing   parwing ... :/ locked . The problem from the begining was that because glassfish could't undeploy the webapp in

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents ...   Thanks. eurojet P. F. Martinez Please explain the test output: Sequential=true Lock =WRITE ... ] WRITE B2 version=2 value=30 A1 version=2 value=10, B2 version=2 value=30 Sequential=false Lock =WRITE

EntityTransaction.commit() does not release a pessimistic lock

It appears that EntityTransaction.commit() does not release a pessimistic lock - test code ... . You are right. Pessimistic locks are not released automatically (by default) on transaction commit. The reason ... and the application can still use them for further processing and update. Locks are released automatically

Optimistic lock failed : object has version .. instead of ..

.OptimisticLockException Optimistic lock failed for object entities.Record#'1405/838/2011/121 ... .java:381) ... Thank you! adibe Adi Be Optimistic locking is explained in this manual page . support Support

Remove a modified entity cause an optimistic lock exception

. The second example is an OSGi program which fails with an optimistic lock exception. Both examples ... ). Can you explain the optimistic lock exception? It seems that the first level cache contains yet a dirty entity

Pessimistic lock

.jdo.option.RestoreValues=false The DB2 returns the message "Optimistic lock failed for object" or ... ._JdoUserException: Attempt to lock an entity object by retrieval when no transaction is activ

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection

explorer locks local database in readonly mode

hi, my current use case is: execute unit test, verify results in explorer. my problem, i have to close the explorer before every run, and open it again after the tests are done. this slows down the whole process. i opened the database in readonly mode, but the file will be locked by the explorer

Optimistic lock

Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the changes made to the object before the violation be retained or must they be duplicated in the retry code?  Assuming it affects only one object.  tia. cpanon CP The exact situation

Database is locked when in use

Database is locked when in use

Optimistic Lock Exception With No Concurrency

Optimistic Lock Exception With No Concurrency

jakarta.persistence.LockOption

Jakarta Persistence (JPA) Interface jakarta.persistence.LockOption An option influencing the behavior of EntityManager. lock . Built-in options control scope , and timeouts . This interface ... . See Also: LockModeType PessimisticLockScope Timeout EntityManager. lock (Object, LockModeType, LockOption...) Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Version

, which is used to detect optimistic lock failures, ensuring the integrity of optimistic transactions. The version ... held by an entity class instance. An optimistic lock failure occurs when verification of the version

jakarta.persistence.PersistenceConfiguration

) 1.0 JDBC_USER Username for JDBC authentication. Since: Jakarta Persistence (JPA) 1.0 LOCK _TIMEOUT Default pessimistic lock timeout hint. Since: Jakarta Persistence (JPA) 1.0 QUERY_TIMEOUT Default

Pessimistic lock timeout - blocks indefinitely

to update the object. I'm using a pessimistic lock with timeout as follows: Map properties = new HashMap (); properties.put("javax.persistence. lock .timeout", 5000); MyEntity loaded = em.find(MyEntity ... a LockTimeoutException implying that the first lock wasn't released on the first commit

File lock exception on odb$

below. No other process had a lock on the file, especially as the server had just been rebooted

jakarta.persistence.TypedQuery.getResultStream()

language UPDATE or DELETE statement. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails ... and the transaction is rolled back. TransactionRequiredException - if a lock mode

jakarta.persistence.TypedQuery.getSingleResult()

. LockTimeoutException - if pessimistic locking fails and only the statement is rolled ... timeout value set and only the statement is rolled back. PessimisticLockException - if pessimistic locking ... back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.TypedQuery.getSingleResultOrNull()

language UPDATE or DELETE statement. LockTimeoutException - if pessimistic locking fails ... back. PessimisticLockException - if pessimistic locking fails and the transaction is rolled ... back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.TypedQuery.getResultList()

- if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking ... - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not

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.Query.getSingleResultOrNull()

DELETE statement. LockTimeoutException - if pessimistic locking fails and only the statement ... back. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. PersistenceException ... back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or

jakarta.persistence.Query.getResultList()

query language UPDATE or DELETE statement. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails ... value set and the transaction is rolled back. TransactionRequiredException - if a lock mode

jakarta.persistence.Query.getResultStream()

language UPDATE or DELETE statement. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails and only the statement ... and the transaction is rolled back. TransactionRequiredException - if a lock mode

jakarta.persistence.Query.getSingleResult()

. LockTimeoutException - if pessimistic locking fails and only the statement is rolled back. NonUniqueResultException ... value set and only the statement is rolled back. PessimisticLockException - if pessimistic locking ... back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.TypedQuery.setLockMode(LockModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setLockMode (    LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance. Throws: IllegalStateException

jakarta.persistence.EntityManager.getLockMode(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager LockModeType getLockMode (    Object entity ) Get the current lock mode held by this persistence context on the given managed entity instance. Parameters: entity - a managed entity instance Returns: the lock mode

jakarta.persistence.Query.setLockMode(LockModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setLockMode (    LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance. Throws: IllegalStateException - if the query is found

jakarta.persistence.PessimisticLockException

Thrown by the persistence provider when a pessimistic locking conflict occurs. This exception

jakarta.persistence.LockTimeoutException

the persistence provider when a pessimistic locking conflict occurs that does not result in

jakarta.persistence.Entity

a value used to detect optimistic lock failure. Fields or properties of an entity class

jakarta.persistence.EntityManagerFactory

query definition. This includes configuration information such as max results, hints, flush mode, lock

jakarta.persistence.EntityResult

The class of the result. Since: Jakarta Persistence (JPA) 1.0 LockModeType lockMode The lock mode obtained

jakarta.persistence.FindOption

Jakarta Persistence (JPA) Interface jakarta.persistence.FindOption An option influencing the behavior of EntityManager.find . Built-in options control locking , cache interaction , and timeouts . This interface may be implemented by custom provider-specific options which extend the options defined

jakarta.persistence.criteria.CriteriaUpdate

optimistic locking checks. Portable applications using bulk update operations must manually update

jakarta.persistence.RefreshOption

Jakarta Persistence (JPA) Interface jakarta.persistence.RefreshOption An option influencing the behavior of EntityManager.refresh . Built-in options control locking , cache interaction , and timeouts . This interface may be implemented by custom provider-specific options which extend the options

jakarta.persistence.NamedQuery

) 1.0 LockModeType lockMode (Optional) The lock mode type to use in query execution. If a lockMode

jakarta.persistence.TypedQuery.setHint(String,Object)

on the database in use and the locking mechanisms used by the provider, this hint may or may not be observed

jakarta.persistence.EntityManagerFactory.addNamedQuery(String,Query)

results, hints, flush mode, lock mode, result set mapping information, and information about stored

jakarta.persistence.EntityResult.lockMode

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityResult LockModeType lockMode The lock mode obtained by the SQL query. Default: LockModeType.OPTIMISTIC Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.LockModeType.OPTIMISTIC

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType OPTIMISTIC Optimistic lock . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.LockModeType.OPTIMISTIC_FORCE_INCREMENT

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType OPTIMISTIC_FORCE_INCREMENT Optimistic lock , with version update. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.LockModeType.PESSIMISTIC_READ

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType PESSIMISTIC_READ Pessimistic read lock . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.LockModeType.PESSIMISTIC_WRITE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType PESSIMISTIC_WRITE Pessimistic write lock . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.LockModeType.PESSIMISTIC_FORCE_INCREMENT

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType PESSIMISTIC_FORCE_INCREMENT Pessimistic write lock , with version update. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.LockModeType.NONE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType NONE No lock . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.NamedQuery.lockMode

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedQuery LockModeType lockMode (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

jakarta.persistence.Query.setHint(String,Object)

and the locking mechanisms used by the provider, this hint may or may not be observed. Parameters