ObjectDB ObjectDB

Internal Website Search

21-30 of 99 resultsRefresh
8

javax.persistence.EntityTransaction

resource transaction has been marked for rollback. Determine whether the current resource transaction has been marked for rollback. Returns: boolean indicating whether the transaction has been marked for rollback Throws: IllegalStateException - if isActive() is false Since: JPA 1.0 boolean isActive
8

javax.persistence.LockModeType

cannot be obtained, and the database locking failure results in transaction-level rollback, the provider must throw ... has been marked for rollback. When the lock cannot be obtained, and the database locking failure results in only statement-level rollback, the provider must throw the LockTimeoutException (and must not mark
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

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

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)

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
2

Step 4: Add a Servlet Class

.getTransaction().isActive()) em.getTransaction().rollback(); em.close
1

[ODB1] Chapter 3 - Persistent Classes

on rollback). This event is rarely used. Other persistent objects and even persistent fields in
1

javax.jdo.Transaction

of the retainValues property Since: JDO 1.0 boolean getRollbackOnly() Returns the rollback-only status of the transaction. Returns the rollback-only status of the transaction. When begun, the rollback ... setRollbackOnly. Returns: true if the transaction has been marked for rollback. Since: JDO 2.0
0

getRollbackOnly()

Method javax.jdo.Transaction boolean getRollbackOnly() Returns the rollback-only status of the transaction. When begun, the rollback-only status is false. Either the application or the JDO implementation may set this flag using setRollbackOnly. Returns: true if the transaction has been marked for rollback. Since: JDO 2.0

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