IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.annotations
Annotation Type Version


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Version

Identifies a field or method as a version attribute. A version attribute is used with optimistic locking to allow fast and efficient concurrency control.

The state of the version field may be accessed by the entity, but never modified. The version value is modified by the underlying TupleStore.

Valid attribute types include: int, Integer, short, Short, long, Long and Timestamp.

Only one version attribute is allowed per entity definition.

Since:
WAS XD 6.1


IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.