ObjectDB ObjectDB

Internal Website Search

31-40 of 100 resultsRefresh
25

"Attempt to lock a non entity object" error

object" session.rollback() is somehow causing the problem (found through debugging ... //----------------------------------------------------------- public void doCancelEdit() { try {     session.rollback(); . . . } //doCancelEdit ... back a transaction - either by invocation of rollback or by a commit failure." Quite different behavior from what I
6

refresh(entity, lockMode)

locking failure causes transaction-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback. Parameters: entity - entity instance
6

javax.persistence.LockTimeoutException

not result in transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time. The current transaction, if one is active, will be not be marked for rollback
6

lock(entity, lockMode, properties)

-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback If a vendor-specific property or hint is not recognized, it is silently
6

refresh(entity, lockMode, properties)

rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback If a vendor-specific property or hint is not recognized, it is silently ignored
6

find(entityClass, primaryKey, lockMode, properties)

rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback If a vendor-specific property or hint is not recognized, it is silently ignored
6

lock(entity, lockMode)

if the database locking failure causes transaction-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback Parameters: entity - entity instance
0

setRestoreValues(restoreValues)

Method javax.jdo.PersistenceManagerFactory void setRestoreValues( boolean restoreValues ) Set the default value for the RestoreValues property. If true, at rollback, fields of newly persistent ... types are restored to their values as of the beginning of the transaction. If false, at rollback
0

find(entityClass, primaryKey, lockMode, properties)

: the PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback ... rollback If a vendor-specific property or hint is not recognized, it is silently ignored. Portable
0

setRestoreValues(restoreValues)

Method javax.jdo.Transaction void setRestoreValues( boolean restoreValues ) If true, at rollback, fields of newly persistent instances are restored to their values as of the beginning ... of the transaction. If false, at rollback, the values of fields of newly persistent instances are unchanged

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support