Fast Object Database for Java - with JPA/JDO support

Internal Website Search

61-70 of 90 resultsRefresh


Method javax.jdo.PersistenceManagerFactory Object getConnectionFactory2() Get the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Returns: the data store connection factory. Since: JDO 1.0


Interfaces: Serializable Thrown by the persistence provider when an optimistic locking conflict occurs

Where Does ObjectDB Block/Lock?

) Does it lock at transaction.begin() if optimistic=false? 4) Does it lock at transaction.commit() if optimistic=true? 5) ObjectDB 1.0 Manual (Support > Knowledge Base > ObjectDB 1.0 Manual > 5. JDO ... transactions are preferred." But, newer version 2.6.8_05 ObjectDB defaults optimistic=true, perhaps implying


Method javax.jdo.Transaction void begin() Begin a transaction. The type of transaction is determined by the setting of the Optimistic flag. Throws: JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is already active. Since: JDO 1.0 See Also: setOptimistic getOptimistic

getPersistenceManagerFactory(overrides, name, resourceLoader, pmfLoader)

are standard key names: "javax.jdo.PersistenceManagerFactoryClass" "javax.jdo.option.Optimistic


transactions; and persistent instances modified in optimistic transactions. Transient


in data store transactions; and persistent instances modified in optimistic transactions. Transient


to do so. If an optimistic transaction is active, this method obtains a datastore connection and verifies

Remove an entity which attributes were changed - OptimisticLockException

the entity from the database. After commit the transaction an exception is caused with optimistic lock ... flushing changes to the database. You may also disable optimistic locking checks if you do not need ... to the optimistic lock exception. But the ObjectDB throws the changes of the entity, if invoking


._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version ... here. EDIT: Merge will attach Willks William Optimistic locking is enabled by ObjectDB automatically even if no version field is defined. You can disable optimistic locking checks (and eliminate

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