ObjectDB Database Search

1-50 of 200 results

JPA Optimistic and Pessimistic Locking

, which represents a shared lock. PESSIMISTIC _ WRITE , which represents an exclusive lock. Setting a Pessimistic ... . PESSIMISTIC _ WRITE ); The first argument is an entity. The second argument is the requested lock ... (from another EntityManager instance) currently holds a PESSIMISTIC _ WRITE lock on that database object

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

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.LockModeType WRITE Synonymous with LockModeType.OPTIMISTIC_FORCE_INCREMENT . OPTIMISTIC_FORCE_INCREMENT is preferred for new applications. Since: Jakarta Persistence (JPA) 1.0

Pessimistic Lock Timeouts setting

index) - and my test case is failing here. The issue is that once the pessimistic lock is in place ... .objectdb.o._LockTimeoutException: Write lock cannot be granted for a.b.c.d.EE#150. irrespective if I set ... on stale updates. Willks William Support of  pessimistic lock timeout setting ( javax.persistence

EntityTransaction.commit() does not release a pessimistic lock

.getTransaction().begin(); Account a1 = em1.find(Account.class, 0, LockModeType. PESSIMISTIC _ WRITE ); a1.credit(10); em1.getTransaction().commit(); System.out.println(em1.getLockMode(a1)); // - PESSIMISTIC ... It appears that EntityTransaction.commit() does not release a pessimistic lock - test code

pessimistic lock not released on commit

. PESSIMISTIC _ WRITE ); System.out.println("Thread A: got lock, updating..."); e.setName("by A"); Thread ... .class, 1L, LockModeType. PESSIMISTIC _ WRITE ); System.out.println("Thread B: got lock, updating..."); e ... we are protecting object access via pessimistic lock of objects. in a multi thread environment

using objectdb.jar in writing data to mariadb or mysql db

and reduce the use of regular sql patterns. Can my application use the objectdb.jar to write ... . You cannot use to write to MySQL or MariaDB (as you cannot use PostgreSQL to write to MySQL). You can use Hibernate or EclipseLink as JPA implementations to write to MySQL, etc. as an alternative to using

Error: Failed to write value of field X using reflection (oneToMany relation)

() I get an exception: com.objectdb.o._PersistenceException: Failed to write the value of field field ... on the first run. But after that I recieve the "Failed to write the value of field field testodb2

Failed to write the value of field using reflection (error 363) on LAZY fetch

Exception in thread "main" [ObjectDB 2.6.3] javax.persistence.PersistenceException Failed to write ... (ZeusImport.java:45) Caused by: com.objectdb.o.UserException: Failed to write the value of field field ch

Failed to write to ObjectDB log file

to another path . Grant the ObjectDB process permission to write to that path. Disable logging by

Setting and Tuning of JPA Queries

. JPA adds support for pessimistic locking . The setLockMode method sets a lock mode to apply to all result objects that the query retrieves. For example, the following code sets a pessimistic WRITE lock on all the result objects: List results = query. setLockMode ( LockModeType . PESSIMISTIC _ WRITE

JPA Runtime Tuning & Configuration

(FlushModeType) Lock mode Specifies the locking strategy: optimistic or pessimistic , shared ( READ ) or exclusive ( WRITE ). Scope Usage Query setLockMode(LockModeType) Operation Implements: FindOption , RefreshOption . Pass as an argument to lock() , find() , or refresh() . Pessimistic lock scope

jakarta.persistence.EntityManager

pessimistic lock on an entity instance. The full range of possible lock types is enumerated by LockModeType ... 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 and the entity

jakarta.persistence.LockModeType

, it must throw the PersistenceException . The lock modes PESSIMISTIC _READ , PESSIMISTIC _ WRITE ... of requesting locks of type LockModeType. PESSIMISTIC _READ , LockModeType. PESSIMISTIC _ WRITE ... LockModeType. PESSIMISTIC _READ or LockModeType. PESSIMISTIC _ WRITE on an object, the entity manager

WORM (Write once read many) support

WORM (Write once read many) support

Pessimistic lock

Pessimistic lock

JPA Exceptions

that another transaction modified the entity since it was last read. Thrown when a pessimistic lock ... when a request to acquire a lock times out. This can occur with both pessimistic and optimistic

Database Management Settings

to the recovery file and then to the database. If the system crashes during a write to the database ... " ) specifies whether to wait for the physical write to complete before the commit operation returns. Setting sync= "false" results in much faster database writes , but sync="true" is safer for production

Apache License, Version 2.0, January 2004

otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean ... of Warranty . Unless required by applicable law or agreed to in writing , Licensor provides the Work ... writing , shall any Contributor be liable to You for damages, including any direct, indirect, special

jakarta.persistence.TypedQuery

DELETE statement. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails and only the statement is rolled ... Persistence query language UPDATE or DELETE statement. PessimisticLockException - if pessimistic locking

jakarta.persistence.Query

- 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 ... for a Jakarta Persistence query language UPDATE or DELETE statement. PessimisticLockException - if pessimistic

Pessimistic lock timeout - blocks indefinitely

.class, 1, LockModeType. PESSIMISTIC _ WRITE , properties); One thread manages to do its update ... I've attached a simple test which creates an object then kicks off several threads which each try to update the object. I'm using a pessimistic lock with timeout as follows: Map properties = new

ObjectDB tries to create a File in a localtion without write access

Hello, if we install our Product into the windows Program Files directory which have by default no write acces for the 'normal' users. If we now open 'older' Profiles (older Databases) we get the following exception: Caused by: javax.persistence.PersistenceException: com.objectdb.o.UserException

ODB Server tries to write a log file to a weird location

have permission to write to that directory and whole application fails. Sometimes it helped to run a doctor

JPA Entity Fields

that field. Version fields should be treated as read-only by the application, and you shouldn't write

Database Replication and Clustering

both read and write operations. The other nodes in the cluster, known as slave nodes, manage identical

ObjectDB License Agreement [ver. 2.0.4]

of this agreement will be binding, unless in writing and signed by an authorized representative of each party. 1

What are the main benefits of using ObjectDB?

. Less (and more simple) code to write , debug and test, as well as a much easier learning curve leads

ObjectDB - JPA Object Database for Java

- start writing more effective database code using Java classes and objects! Try an ObjectDB / JPA

Eclipse Public License - v 1.0

the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor

ObjectDB Object Database Features

from failure by using a  recovery file and double writing . Additional recovery layer

General Settings and Logging

attribute. The stdout and stderr attributes specify whether to also write log messages to standard

ObjectDB Website - Terms and Conditions of Use

a ObjectDB Software authorized representative has been notified orally or in writing of the possibility

Chapter 1 - Quick Tour

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

Database Explorer

, either write a query in the Query window or select an element to view (such as an entity class in the Schema

jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...)

the specified options . If a pessimistic lock mode type is specified and the entity contains a version ... is pessimistic and the entity instance is found but cannot be locked: the PessimisticLockException is thrown ... lockMode - lock mode entity - a managed entity instance Throws: LockTimeoutException - if pessimistic

jakarta.persistence.EntityManager.lock(Object,LockModeType)

to the persistence context, obtaining the specified lock mode . If a pessimistic lock mode type is specified ... . If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... - if pessimistic locking fails and only the statement is rolled back. PessimisticLockException

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

properties. If a pessimistic lock mode type is specified and the entity contains a version attribute ... lock. If these checks fail, the OptimisticLockException is thrown. If the lock mode type is pessimistic ... - if pessimistic locking fails and only the statement is rolled back. PessimisticLockException

jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...)

there. If the entity is found within the persistence context and the lock mode type is pessimistic ... 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

jakarta.persistence.EntityManager.find(Class,Object,LockModeType)

within the persistence context and the lock mode type is pessimistic and the entity has a version ... is pessimistic and the entity instance is found but cannot be locked: the PessimisticLockException is thrown ... if the entity does not exist. Throws: PessimisticLockException - if pessimistic locking fails

jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map)

there. If the entity is found within the persistence context and the lock mode type is pessimistic and the entity ... 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

jakarta.persistence.EntityManager.find(Class,Object,FindOption...)

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

jakarta.persistence.StoredProcedureQuery

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

jakarta.persistence.PessimisticLockScope

.lock.scope property for pessimistic locking. This property may be passed as an argument ... Persistence (JPA) 1.0 NORMAL This value defines the default behavior for pessimistic locking

jakarta.persistence.EntityManager.refresh(Object,LockModeType)

=REFRESH . 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. EntityNotFoundException

jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map)

is pessimistic and the entity instance is found but cannot be locked: the PessimisticLockException ... : PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails and only the statement is rolled back. EntityNotFoundException

jakarta.persistence.EntityManager.refresh(Object,RefreshOption...)

. 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 locking fails and only the statement is rolled back. EntityNotFoundException - if the entity

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