@Target(value=FIELD) @Retention(value=RUNTIME) @Documented public @interface CollectionRelationship
Analog to the DataObjectCollection
metadata.
Modifier and Type | Required Element and Description |
---|---|
AttributeRelationship[] |
attributeRelationships
The list of attribute relationships linking the parent object and the collection objects.
|
Modifier and Type | Optional Element and Description |
---|---|
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.
|
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.
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.