|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=FIELD) @Retention(value=RUNTIME) @Documented public @interface CollectionRelationship
Defines that the associated Collection field contains a collection of DataObjects.
Analog to the DataObjectCollection
metadata.
Required Element Summary | |
---|---|
AttributeRelationship[] |
attributeRelationships
The list of attribute relationships linking the parent object and the collection objects. |
Optional Element Summary | |
---|---|
Class<?> |
collectionElementClass
The element type of the collection. |
String |
elementLabel
When needed, how to label each element of the collection. |
boolean |
indirectCollection
Whether this collection uses an indirection table between the parent and collection objects. |
String |
label
The label of the collection itself. |
long |
maxItemsInCollection
The maximum items that can appear in the collection. |
long |
minItemsInCollection
The minimum items that can appear in the collection. |
CollectionSortAttribute[] |
sortAttributes
The default sort order for the collection. |
Element Detail |
---|
public abstract AttributeRelationship[] attributeRelationships
public abstract Class<?> collectionElementClass
If the collection contains Generics, it will be derived automatically.
public abstract CollectionSortAttribute[] sortAttributes
public abstract long minItemsInCollection
public abstract long maxItemsInCollection
public abstract boolean indirectCollection
This has no function at present, but is here for informational purposes.
public abstract String elementLabel
This is usually singular. Will default to the label of the contained element type.
public abstract String label
This is usually plural.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |