About lock

api-jpa

getSingleResult()

Execute a SELECT query that returns a single untyped result.(Method of javax.persistence.Query)

 
manual

JPA Entity Fields

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... property of an entity class that serves as its optimistic lock value. See JavaDoc Reference Page... annotation. In addition, a ... property of an entity class that serves as its optimistic lock value. See JavaDoc Reference Page... long version ; ...

 
api-jpa

getResultList()

Execute a SELECT query and return the query results as a typed List.(Method of javax.persistence.TypedQuery)

 
api-jpa

JPA Exceptions

Reference (JavaDoc) of the JPA exception classes, including PersistenceException, EntityExistsException, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException.... Other common causes for RollbackException are lock failures: javax.persistence.LockTimeoutException ... javax.persistence.QueryTimeoutException The lock exceptions (above) may also be thrown during retrieval, if database lock ...

 
forum_thread

Unable to delete the .odb file programatically

Hi, I created the test.odb file, read the contents and now trying the delete the odb file using objectd2.x. I see the folder there are two files created test.odb and test.odb$. Using the following code to delte the odb files ... as well to close the database file (and release the lock) . ObjectDB Support ObjectDB - Fast Object ... pm ;   Code for releasing the lock so that database files can be deleted PersistenceManager ...

 
api-jpa

getResultList()

Execute a SELECT query and return the query results as an untyped List.(Method of javax.persistence.Query)

 
api-jpa

javax.persistence.Version

Specifies the version field or property of an entity class that serves as its optimistic lock value.(Annotation of JPA)

 
forum_thread

Transaction isolation support?

I am looking at using ObjectDB for our new project, and its looking good so far. But I 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. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin   #1 2013-04-14 13:16 I am looking at using ObjectDB for our new project, and its looking good so far. But I have been unable to find a ...

 
api-jpa

getSingleResult()

Execute a SELECT query that returns a single result.(Method of javax.persistence.TypedQuery)

 
forum_thread

Failed to commit transaction: Attempt to commit a rollback only transaction

Anyone know what this means?? Suddenly cropped up.   Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo.Transaction$commit.call(Unknown Source) #1 2011-05-24 22:22 Anyone know what this means?? Suddenly cropped up. Failed to commit transaction: Attempt to commit ...