About optimistic

41-50 of 86Refresh
JDO Doc
6

setOptimistic(flag)

Method javax.jdo.PersistenceManagerFactory void setOptimistic(   boolean flag ) Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default Optimistic setting. Since: JDO 1.0
Forum
5

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal ... : Optimistic lock failed for object   perhaps I should explain the problem, which is that the optimistic lock ... A get the optimistic lock exception. ie: the version number does not appear to be automatically updated in
JDO Doc
4

begin()

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
JDO Doc
4

checkConsistency()

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

flush()

Method javax.jdo.PersistenceManager void flush() Flushes all dirty, new, and deleted instances to the data store. It has no effect if a transaction is not active. If a datastore transaction is active, this method synchronizes the cache with the datastore and reports any exceptions. If an optimistic
JDO Doc
4

getConnectionFactory2()

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
JDO Doc
4

getConnectionFactory2Name()

Method javax.jdo.PersistenceManagerFactory String getConnectionFactory2Name() Get the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Returns: the name of the data store connection factory. Since: JDO 1.0
JDO Doc
4

getDataStoreConnection()

Method javax.jdo.PersistenceManager JDOConnection getDataStoreConnection() If this method is called while a datastore transaction is active, the object returned will be enlisted in the current transaction. If called in an optimistic transaction or outside an active transaction, the object returned
JDO Doc
4

getObjectById(oid, validate)

transaction in progress, the returned instance will be persistent-clean. If there is an optimistic
JDO Doc
4

getPersistenceManagerFactory(overrides, name, resourceLoader, pmfLoader)

.Optimistic", "javax.jdo.option.RetainValues", "javax.jdo.option.RestoreValues", "javax.jdo.option