|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public @interface ForeignKeyAnnotation used to indicate a foreign key (direct reference to another prevalent object). Foreign keys are automatically indexed, hence it is not necessary to declare single field indices for fields that are also marked as foreign keys. Delete actions are also configured using this annotation.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Optional Element Summary | |
|---|---|
String |
collectionEntry
The fully qualified name of the prevalent object stored in collection fields. |
ForeignKey.DeleteAction |
deleteAction
The action to perform when the referenced prevalent object is deleted from the prevalent system. |
String |
member
The name of the field in the prevalent object. |
boolean |
unique
Indicate whether the referenced prevalent object should be unique within the extent of the prevalent object being annotated. |
public abstract String member
NULL.
public abstract boolean unique
false.
true if the referenced prevalent object
should be unique.public abstract ForeignKey.DeleteAction deleteAction
ForeignKey.DeleteAction.EXCEPTION.
public abstract String collectionEntry
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||