ObjectDB Database Search

51-100 of 200 results

Best setup for huge amount of transactions

transactions for each edit of the entity: try {      DefaultConnectionManager ... to begin a new transaction when a transaction is active [PMImpl] at com.objectdb.o ._PersistenceException ... .java:56) Thanks, Martin itsme Martin Petzold Each transaction takes around 30-100ms at the moment

Rollback of several closed transactions

to split a transaction into several transactions . But then we need actually a rollback for several transactions . Is there any possibility in the ObjectDB to rollback several closed transactions ? btc_es BTC EmbeddedSystems You cannot roll back a committed transaction . In that case, you may want

Transaction isolation support?

have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading ... database, A and B would run in their own transaction , and the answer would thus depend

One transaction or two?

is it more efficient to do everything in one transaction or two? Currently my code looks like ... (); } } Should I separate the deletes and adds into separate transactions ? I think I remember reading ... Onstott Actually one transaction eliminates some overhead but may require more RAM if you have many large

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using OBD with Spring and transactions are managed by Spring. The problem is, that we have custom ... transaction is committed so all returned entities are not populated with ID in this context

Update entity without first opening a transaction

Hi everyone, I want to update an entity in my program without having to open a transaction , do the modifications and commit the transaction . I want to have a managed entity that is in sync ... transactions for updating the content of a database. But if you use Java EE or Spring, the container may manage the transactions automatically. support Support

Is it possible to using JDO and distributed transaction?

I'am new to study JDO. Can and How I use JDO an distributed transaction ?(multiple database ... Reference Documentation       JCA, JTA, and JDO Transactions - Using ... ;    btpka3 ZhangLiangLiang ObjectDB supports distributed transactions and JTA through JPA

Query for objects persisted within the same transaction

I have a question concerning reading uncommited entities with query, within active transaction . For example, I read data from file. Each line contains value of one of entity's attributes ... and persisted withing current transaction is invisible to future queries in this transaction , unless

Performance in large transactions

Hello, we have a performance problem when we use a large transaction . Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities and between the creations we call a select query. The execution of the query becomes slower at each

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

the same transaction : first remove additional Data - The special Entity (with id 1) is empty and we remove ... removing an entity object and then in the same transaction persisting another object with the same primary

NegativeArraySizeException on commiting a transaction

Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the DB and committing the transaction . I tried to repair the DB file with Database Doctor ... , so only 20 remained and since then my changing transactions are working fine on that original object

com.objectdb.o._RollbackException: Failed to commit transaction

Check the Exception below: (occurs sometimes, ObjectDB 2.3.6_14) com.objectdb.o._RollbackException: Failed to commit transaction : at com.objectdb.o.JPE.g(JPE.java:89) ~[JPE.class:na] at com.objectdb.o.ERR.f(ERR.java:59) ~[ERR.class:na] at com.objectdb.o.OBC.onObjectDBError(OBC.java:1493) ~[OBC

Failed to commit transaction: Attempt to reuse an existing primary key value (613)

.RollbackException Failed to commit transaction : Attempt to reuse an existing primary key value

Querys without Transaction

Hello, are querys faster, if we use the entity manager without transaction , since we need only read-only entities. btc_es BTC EmbeddedSystems There is no much difference, but report queries , i.e. queries that return simple value fields rather than entity objects are more efficient as

Failed to commit transaction: Java heap space (error 613)

.RollbackException Failed to commit transaction : Java heap space (error 613) We are using ObjectDB 2

Query problem after transaction commit

I have a machine running the objectdb server and the client on another machine connect to it. The client program can connect to the server and query to get all the records. However, after transaction .begin ... persist(p) .. commit of a new object, my client program can no longer retrieve the old

Max transaction size

What’s the max transaction size, or how is it determined? Trianglehead Json Error The main limit is the available memory in the JVM. There is no hard limit. support Support

CM Transaction Implementation

Hi All, How to implement Container Managed Transaction using Glassfish / Weblogic server. Please provide us the step by step instruction, how ti achieve it       umesh umesh Please check the following tutorial: http://www.objectdb.com/tutorial/jpa/ee support Support

Transaction size limit

Although I read in this post https://www.objectdb.com/forum/2606 that the size of the transaction has no hard limit, our experience shows that we can not commit a transaction exceeding 2GB even though the ObjectDB server runs with Xmx15G. We get the following exception in our JDO transaction in

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities ... DBVectorStepBlockCollectionImpl was modified and then the transaction will be committed. em.getTransaction ... which hold much memory, if we execute several transactions on the identical entity manager

Unexpected exception (Error 990) - Merge with no Transaction

I am frequently having an error when merging a detached object outside of a transaction ... : Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: com ... .IllegalArgumentException Attempt to modify an object with no active transaction when NontransactionalWrite is disabled

Persist & remove in same transaction

I have a test case (attached) which performs the following actions: Open a new transaction Create & persist a simple entity object, EntityManager is flushed, Transaction is not committed Count ... Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed Count

Error in production. Failed to commit transaction: Unexpected database state: BTree -152 is not found

.Read .doGet (115 ): Failed to commit transaction : Unexpected database state: BTree -152 is not found [ObjectDB 2.5.5] javax.persistence.RollbackException Failed to commit transaction : Unexpected

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

The following error is reported for objectdb-2.6.9.jar: Failed to commit transaction : Failed to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... " [ObjectDB 2.6.9] javax.persistence.RollbackException Failed to commit transaction : Failed to set numeric

Inefficient memory usage with very large transactions

When a large transaction is committed, ObjectDB increases some internal structures, i.e. allocates more memory, but from that point the structures remain big and the memory is not released even if all the next transactions are small. This problem was found during a heap analysis (see #9 in

Threaded Test - Failed to commit transaction: Unexpected internal exception

Threaded Test - Failed to commit transaction: Unexpected internal exception

InterfaceRef jakarta.persistence.EntityManagerFactory

has a transaction type , either JTA , or RESOURCE_LOCAL . Resource-local transactions are managed ... with an active transaction , and call the given function, passing the EntityManager to the function. If the transaction type of the persistence unit is JTA, and there is a JTA transaction

EnumRef jakarta.persistence.LockModeType

are the following. If transaction T1 calls for a lock of type LockModeType.OPTIMISTIC on a versioned object ... ): Transaction T1 modifies a row. Another transaction T2 then reads that row and obtains the modified value, before T1 has committed or rolled back. Transaction T2 eventually commits successfully; it does

InterfaceRef jakarta.persistence.Query

- if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException ... and the transaction is rolled back Since: JPA 1.0 CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode ... - if a lock mode other than {@code NONE} has been set and there is no transaction or the persistence

InterfaceRef jakarta.persistence.TypedQuery

for a criteria query TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException - if the statement execution exceeds ... execution exceeds the query timeout value set and the transaction is rolled back Inherited from: Query

InterfaceRef jakarta.persistence.EntityTransaction

JPA Interface EntityTransaction Interface used to control transactions on resource-local entity ... void begin () Start a resource transaction . Throws: IllegalStateException - if {@link #isActive()} is true Since: JPA 1.0 void commit () Commit the current resource transaction , writing any unflushed

InterfaceRef jakarta.persistence.StoredProcedureQuery

execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1 int ... : TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException - if the statement execution exceeds the query timeout value

EntityManagerFactory.runInTransaction(work) - JPA Method

;Consumer  work ) Create a new application-managed EntityManager with an active transaction , and execute the given function, passing the EntityManager to the function. If the transaction type of the persistence unit is JTA, and there is a JTA transaction already associated with the caller

EntityManagerFactory.callInTransaction(work) - JPA Method

 work ) Create a new application-managed EntityManager with an active transaction , and call the given function, passing the EntityManager to the function. If the transaction type of the persistence unit is JTA, and there is a JTA transaction already associated with the caller

EntityManager.refresh(entity,options) - JPA Method

: the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... -managed entity manager of type {@link PersistenceContextType# TRANSACTION } when there is no transaction ; if invoked on an extended entity manager when there is no transaction and a lock mode

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

if the database locking failure causes transaction -level rollback the LockTimeoutException is thrown ... - if invoked on a container-managed entity manager of type {@link PersistenceContextType# TRANSACTION } when there is no transaction ; if invoked on an extended entity manager when there is no transaction

InterfaceRef jakarta.persistence.spi.PersistenceUnitInfo

source to be used by the persistence provider for accessing data outside a JTA transaction . The data ... the persistence provider for accessing data outside a JTA transaction Since: JPA 1.0 String ... PersistenceUnitTransactionType getTransactionType () Returns the transaction type of the entity managers

EntityManager.refresh(entity,lockMode) - JPA Method

: the PessimisticLockException is thrown if the database locking failure causes transaction -level rollback ... - if invoked on a container-managed entity manager of type {@link PersistenceContextType# TRANSACTION } when there is no transaction ; if invoked on an extended entity manager when there is no transaction

EnumRef jakarta.persistence.PersistenceUnitTransactionType

.persistence.PersistenceUnitTransactionType Enumerates the possible approaches to transaction management in Jakarta Persistence. An EntityManager may be a JTA entity manager, where transaction management is done via JTA, or it may be a resource-local entity manager, where transaction management

EnumRef jakarta.persistence.SynchronizationType

with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the () method. Since: JPA 2.1 Enum Constants SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA 2.1 UNSYNCHRONIZED

Query.getResultStream() - JPA Method

NONE} has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled ... back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back See Also: Stream getResultList () Since: JPA 2.2

Query.getSingleResult() - JPA Method

- if a lock mode other than {@code NONE} has been set and there is no transaction or 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

other than {@code NONE} has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction ... back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 1.0

TypedQuery.getSingleResult() - JPA Method

back TransactionRequiredException - if a lock mode other than {@code NONE} has been set and there is no transaction or 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

TypedQuery.getResultList() - JPA Method

- if a lock mode other than {@code NONE} has been set and there is no transaction or 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

TypedQuery.getResultStream() - JPA Method

NONE} has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled ... - if the query execution exceeds the query timeout value set and the transaction is rolled back See Also: Stream getResultList () Since: JPA 2.2

EnumRef jakarta.persistence.PersistenceContextType

.persistence.PersistenceContextType Specifies whether a transaction -scoped or extended persistence context is to be used in PersistenceContext . If not specified, a transaction -scoped persistence context is used. Since: JPA 1.0 Enum Constants EXTENDED Extended persistence context Since: JPA 1.0 TRANSACTION

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

if the database locking failure causes transaction -level rollback the LockTimeoutException is thrown ... an entity or is a detached entity TransactionRequiredException - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction EntityNotFoundException

AnnotationRef jakarta.persistence.PersistenceContext

whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means ... . TRANSACTION (Optional) Specifies whether a transaction -scoped persistence context or an extended

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

but cannot be locked: the PessimisticLockException is thrown if the database locking failure causes transaction -level ... TransactionRequiredException - if there is no transaction and a lock mode other than {@code NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction