ObjectDB ObjectDB

Internal Website Search

21-30 of 100 resultsRefresh
15

JPA Exceptions

failures that require transaction rollback are represented by: The RollbackException exception usually
9

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
9

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

getRollbackOnly()

Method javax.persistence.EntityTransaction boolean getRollbackOnly() 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
6

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
6

find(entityClass, primaryKey, lockMode)

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

javax.persistence.EntityExistsException

and the entity already exists. The current transaction, if one is active, will be marked for rollback ... time. The current transaction, if one is active, will be marked for rollback. Since: JPA 1.0
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
0

javax.jdo.PersistenceManagerFactory

for the RestoreValues property. Set the default value for the RestoreValues property. If true, at rollback ... 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