|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface SpaceId
To designate a property as the entity's primary key. The getter method of the POJO object provides a matchable fields for the space. Define whether this field value to be used as when generating UID. The field value should be unique, i.e. no multiple objects with the same value should be written into the space, each object should have a different field value. When writing an object into the space with existing PrimaryKey field value EntryAlreadyInSpaceException will be thrown. UID is created based on the PrimaryKey field value.
Optional Element Summary | |
---|---|
boolean |
autoGenerate
The auto-generate property defines how a unique ID is generated. |
public abstract boolean autoGenerate
false
,
indicating that a unique ID will be generated from the annotated field's
supplied value's toString()
. This field can be of any
type, but it's value's string representation enforces uniqueness.
When auto-generate is true
, it indicates that a
unique ID will be generated by the space (when first written) injecting
the UID String
value into this field - which must be of
type String
.
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |