About version

101-110 of 200Refresh
JDO Doc
5

javax.jdo.Constants

See Also: PersistenceManagerFactory.getProperties() String NONCONFIGURABLE_PROPERTY_VERSION_NUMBER ... See Also: PersistenceManagerFactory.supportedOptions() String OPTION_VERSION_DATETIME "javax.jdo.option.version.DateTime" "javax.jdo.option.version.DateTime" Since: JDO 2.1
JPA Doc
5

javax.persistence.MappedSuperclass

{ @Id protected Integer empId; @Version protected Integer version; @ManyToOne ... to FTEMPLOYEE.EMPID // Inherited version field mapped to FTEMPLOYEE.VERSION ... empId field mapped to PT_EMP.EMPID // Inherited version field mapped to PT_EMP.VERSION
Forum
4

Optimistic locking failure

---------------------------------------------------------- READ(A) version=1 value=0 | READ(B) version=1 value=0 | | READ(A) version=1 value=0 | READ(B) version=1 value=0 | B = A + B + 20 | WRITE(B) version=2
JPA Doc
4

getDeclaredVersion(type)

(   Class type ) Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared version attribute Returns: declared version attribute Throws: IllegalArgumentException - if version attribute of the type is not declared in the identifiable type Since: JPA 2.0
JPA Doc
4

getVersion(type)

> type ) Return the attribute that corresponds to the version attribute of the entity or mapped superclass. Parameters: type - the type of the represented version attribute Returns: version attribute Throws: IllegalArgumentException - if version attribute of the given type is not present in the identifiable type Since: JPA 2.0
JDO Doc
4

javax.jdo.spi.PersistenceCapable

PersistenceManager, object identity, and version if it has one. In the Reference Implementation, the JDO Enhancer ... jdoGetVersion() Return the version of this instance. Return the version of this instance. Returns: the version Since: JDO 2.0 boolean jdoIsDeleted() Tests whether this object has been deleted. Tests
JPA Doc
3

find(entityClass, primaryKey, lockMode)

context and the lock mode type is pessimistic and the entity has a version attribute, the persistence provider must perform optimistic version checks when obtaining the database lock. If these checks fail ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking
JPA Doc
3

find(entityClass, primaryKey, lockMode, properties)

and the entity has a version attribute, the persistence provider must perform optimistic version ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking fails
JPA Doc
3

find(entityClass, primaryKey, lockMode, properties)

is pessimistic and the entity has a version attribute, the persistence provider must perform optimistic version checks when obtaining the database lock. If these checks fail, the OptimisticLockException ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic
JDO Doc
3

javax.jdo.spi.StateManager

representing the version of the calling instance. Return the object representing the version ... representing the version of the calling instance Since: JDO 2.0 boolean isDeleted( PersistenceCapable pc