org.kuali.rice.krad.data.metadata
Interface MetadataCommon

All Superinterfaces:
Serializable
All Known Subinterfaces:
DataObjectAttribute, DataObjectAttributeInternal, DataObjectCollection, DataObjectMetadata, DataObjectMetadataInternal, DataObjectRelationship, MetadataChild, MetadataCommonInternal
All Known Implementing Classes:
DataObjectAttributeImpl, DataObjectCollectionImpl, DataObjectMetadataImpl, DataObjectRelationshipImpl, MetadataChildBase, MetadataCommonBase

public interface MetadataCommon
extends Serializable

An interface for attributes common to all primary metadata objects. (name, backing object, labels, etc...)

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 String getBackingObjectName()
          Provider specific name of the persistent storage behind this object type.
 String getDescription()
          A longer description of the object.
 String getLabel()
          The user displayed name of the object.
 MetadataMergeAction getMergeAction()
          MetadataMergeAction which determines how to handle the embedding of this object when multiple metadata providers are in use.
 String getName()
          The name of the object as known to the system.
 String getShortLabel()
          A shorter version of the user displayed name of the object.
 String getSummary()
          An even longer description of the object?
 Object getUniqueKeyForMerging()
          An object representing the object for purposes of merging.
 boolean isReadOnly()
          Whether this metadata object should be considered read-only by calling code.
 

Method Detail

getMergeAction

MetadataMergeAction getMergeAction()
MetadataMergeAction which determines how to handle the embedding of this object when multiple metadata providers are in use.

Returns:
the merge action to use when embedding this metadata when multiple metadata providers are in use
See Also:
MetadataMergeAction

getUniqueKeyForMerging

Object getUniqueKeyForMerging()
An object representing the object for purposes of merging. This should return an attribute name or a unique data type object. Whatever the class, it must have proper hashCode() and equals() semantics and not rely on object identity. This method must not return null;


getBackingObjectName

String getBackingObjectName()
Provider specific name of the persistent storage behind this object type. For a data object, this would likely be the table name. For an attribute, this would be the table column name. It is to be used for reference purposes only.

Returns:
String representing the backing object. Must not return null.

getName

String getName()
The name of the object as known to the system. This would be the class name, attribute name, etc...


getLabel

String getLabel()
The user displayed name of the object.


getShortLabel

String getShortLabel()
A shorter version of the user displayed name of the object.


getDescription

String getDescription()
A longer description of the object. TODO: what is this used for?


getSummary

String getSummary()
An even longer description of the object?


isReadOnly

boolean isReadOnly()
Whether this metadata object should be considered read-only by calling code. That is, the persistence layer is not likely to accept/persist an update to this object, attribute, collection, reference.



Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.