ObjectDB ObjectDB

Internal Website Search

161-170 of 200 resultsRefresh
3

find(entityClass, primaryKey, lockMode)

failure causes transaction-level rollback the LockTimeoutException will be thrown if the database ... TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified ... and the transaction is rolled back LockTimeoutException - if pessimistic locking fails
3

javax.persistence.PersistenceContext

PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. (Optional) Specifies whether a transaction-scoped ... .PersistenceContextType.TRANSACTION Since: JPA 1.0 String unitName (Optional) The name
3

find(entityClass, primaryKey, lockMode, properties)

: the PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback ... - if there is no transaction and a lock mode other than NONE is specified OptimisticLockException ... and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement
3

lock(entity, lockMode)

if the database locking failure causes transaction-level rollback the LockTimeoutException will be thrown ... is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException ... and the transaction is rolled back LockTimeoutException - if pessimistic locking fails
3

setRollbackOnly()

Method javax.persistence.EntityTransaction void setRollbackOnly() Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back. Throws: IllegalStateException - if isActive() is false Since: JPA 1.0
3

getSingleResult()

mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails ... value set and the transaction is rolled back Since: JPA 1.0
3

getResultList()

back TransactionRequiredException - if a lock mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic ... exceeds the query timeout value set and the transaction is rolled back Since: JPA 1.0
0

find(entityClass, primaryKey, lockMode, properties)

: the PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback ... - if there is no transaction and a lock mode other than NONE is specified OptimisticLockException ... and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement
0

makeNontransactional(pc)

Method javax.jdo.PersistenceManager void makeNontransactional( Object pc ) Make an instance non-transactional after commit. Normally, at transaction completion, instances are evicted from the cache ... at transaction completion. Instead, the instance remains in the cache with nontransactional state
0

getTransactionalObjectId(pc)

. If the object identity is being changed in the transaction, by the application modifying one or more of the application key fields, then this method returns the current identity in the transaction. If there is no transaction in progress, or if none of the key fields is being modified

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