public interface MetadataChild extends MetadataCommon
Interface shared by all non-top-level metadata objects which link to other persistable objects. This is used as the base interface for 1:1/M:1 Relationships and 1:M/N:M Collections.
Modifier and Type | Method and Description |
---|---|
List<DataObjectAttributeRelationship> |
getAttributeRelationships()
Gets the parent-child related fields
|
MetadataChild |
getInverseRelationship()
Gets bi-directional relationship
|
String |
getParentAttributeNameRelatedToChildAttributeName(String childAttribute)
Gets foreign key attribute from parent.
|
Class<?> |
getRelatedType()
Gets the type of related object
|
boolean |
isDeletedWithParent()
Determines whether this object will be automatically deleted when the containing object is deleted.
|
boolean |
isLoadedAtParentLoadTime()
Determines whether object will be loaded with parent
|
boolean |
isLoadedDynamicallyUponUse()
Determines whether the object is reloaded automatically with parent
|
boolean |
isSavedWithParent()
Determines whether object automatically saved
|
getBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnly
Class<?> getRelatedType()
This is the type of the object referenced by this relationship or contained in this collection.
List<DataObjectAttributeRelationship> getAttributeRelationships()
Returns the related fields between the parent and child objects.
MetadataChild getInverseRelationship()
If this metadata element is part of a bi-directional relationship, this method returns the other side of the bi-directional relationship.
boolean isSavedWithParent()
For related objects, whether this object will be automatically saved when the containing object is persisted.
boolean isDeletedWithParent()
This is a special case of the isSavedWithParent()
method. It probably would never be true if the
isSavedWithParent()
returns false.
boolean isLoadedAtParentLoadTime()
For related objects, whether this related object will be loaded from the persistence layer at the same time as the parent object.
If false, the object will be loaded upon demand, either via automatic lazy-loading provided by the infrastructure or by explicit request.
boolean isLoadedDynamicallyUponUse()
For related objects, whether this related object will be loaded from the persistence layer automatically when it is accessed by client code.
If false, then the object must be refreshed manually by client code. (Though such a refresh may be possible by requesting the refresh from the persistence provider.)
String getParentAttributeNameRelatedToChildAttributeName(String childAttribute)
For a given child key attribute, return the matching foreign key attribute on the parent object.
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.