Class DataObjectCollectionImpl
java.lang.Object
org.kuali.rice.krad.data.metadata.impl.MetadataCommonBase
org.kuali.rice.krad.data.metadata.impl.MetadataChildBase
org.kuali.rice.krad.data.metadata.impl.DataObjectCollectionImpl
- All Implemented Interfaces:
Serializable,DataObjectCollection,MetadataCommonInternal,MetadataChild,MetadataCommon
Collection meta data.
Implementation that represents the meta data for a collection in a data object.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<DataObjectCollectionSortAttribute> protected Stringprotected DataObjectCollectionprotected Booleanprotected Longprotected LongFields inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataChildBase
attributeRelationships, deletedWithParent, embeddedMetadataChild, inverseRelationship, loadedAtParentLoadTime, loadedDynamicallyUponUse, relatedType, savedWithParentFields inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataCommonBase
backingObjectName, description, embeddedCommonMetadata, label, mergeAction, name, readOnly, shortLabel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default ordering of a collection.The elementLabel defines the name to be used for a single object within the collection.Gets the embedded collection.The maximum number of items which may be in the collection.Gets the minimum number of items which may be in the collection.booleanDetermines whether a linked objected is used.voidsetDefaultCollectionOrderingAttributeNames(List<DataObjectCollectionSortAttribute> defaultCollectionOrdering) Sets attribute that the default order of the collection.voidsetElementLabel(String elementLabel) Sets name used for single object within collection.voidsetEmbeddedCollection(DataObjectCollection embeddedCollection) voidsetIndirectCollection(boolean indirectCollection) Sets whether linked item is used.voidsetMaxItemsInCollection(Long maxOccurs) Sets maximum items in collection.voidsetMinItemsInCollection(Long minOccurs) Sets minimum items in collection.Methods inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataChildBase
getAttributeRelationships, getEmbeddedMetadataChild, getInverseRelationship, getParentAttributeNameRelatedToChildAttributeName, getRelatedType, isDeletedWithParent, isLoadedAtParentLoadTime, isLoadedDynamicallyUponUse, isSavedWithParent, setAttributeRelationships, setDeletedWithParent, setEmbeddedMetadataChild, setInverseRelationship, setLoadedAtParentLoadTime, setLoadedDynamicallyUponUse, setRelatedType, setSavedWithParent, toStringMethods inherited from class org.kuali.rice.krad.data.metadata.impl.MetadataCommonBase
getBackingObjectName, getDescription, getEmbeddedCommonMetadata, getLabel, getLabelFromPropertyName, getMergeAction, getName, getShortLabel, getUniqueKeyForMerging, isReadOnly, mergeLists, setBackingObjectName, setDescription, setEmbeddedCommonMetadata, setLabel, setMergeAction, setName, setReadOnly, setShortLabelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.data.metadata.MetadataChild
getAttributeRelationships, getInverseRelationship, getParentAttributeNameRelatedToChildAttributeName, getRelatedType, isDeletedWithParent, isLoadedAtParentLoadTime, isLoadedDynamicallyUponUse, isSavedWithParentMethods inherited from interface org.kuali.rice.krad.data.metadata.MetadataCommon
getBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnly
-
Field Details
-
embeddedCollection
-
elementLabel
-
minItems
-
maxItems
-
defaultOrdering
-
indirectCollection
-
-
Constructor Details
-
DataObjectCollectionImpl
public DataObjectCollectionImpl()
-
-
Method Details
-
getElementLabel
The elementLabel defines the name to be used for a single object within the collection.For example: "Address" may be the name of one object within the "Addresses" collection.
- Specified by:
getElementLabelin interfaceDataObjectCollection
-
setElementLabel
Sets name used for single object within collection.- Parameters:
elementLabel- single object name
-
getMinItems
Description copied from interface:DataObjectCollectionGets the minimum number of items which may be in the collection.This is an optional attribute and may not be set by the metadata provider.
- Specified by:
getMinItemsin interfaceDataObjectCollection- Returns:
- The minimum number of items which must be in this collection or null if unset.
-
setMinItemsInCollection
Sets minimum items in collection.- Parameters:
minOccurs- minimum items in collection.
-
getMaxItems
The maximum number of items which may be in the collection.This is an optional attribute and may not be set by the metadata provider.
- Specified by:
getMaxItemsin interfaceDataObjectCollection- Returns:
- The maximum number of items which may be in this collection or null if unset.
-
setMaxItemsInCollection
Sets maximum items in collection.- Parameters:
maxOccurs- maximum items in collection.
-
getDefaultOrdering
Gets the default ordering of a collection.The default ordering of collection items as specified by the metadata provider.
- Specified by:
getDefaultOrderingin interfaceDataObjectCollection- Returns:
- The list of fields in order by which to sort, or an empty list if none specified.
-
setDefaultCollectionOrderingAttributeNames
public void setDefaultCollectionOrderingAttributeNames(List<DataObjectCollectionSortAttribute> defaultCollectionOrdering) Sets attribute that the default order of the collection.- Parameters:
defaultCollectionOrdering- attribute name
-
isIndirectCollection
public boolean isIndirectCollection()Determines whether a linked objected is used.Whether the referenced collection uses a linking object in the underlying implementation. (In case that is somehow important to using code.).
- Specified by:
isIndirectCollectionin interfaceDataObjectCollection- Returns:
- whether a linked object is used
-
setIndirectCollection
public void setIndirectCollection(boolean indirectCollection) Sets whether linked item is used.- Parameters:
indirectCollection- whether link item used.
-
getEmbeddedCollection
Gets the embedded collection.- Returns:
- the embedded collection, if it exists.
-
setEmbeddedCollection
-