public abstract class MetadataChildBase extends MetadataCommonBase implements MetadataChild
| Modifier and Type | Field and Description |
|---|---|
protected List<DataObjectAttributeRelationship> |
attributeRelationships |
protected Boolean |
deletedWithParent |
protected MetadataChild |
embeddedMetadataChild |
protected MetadataChild |
inverseRelationship |
protected Boolean |
loadedAtParentLoadTime |
protected Boolean |
loadedDynamicallyUponUse |
protected Class<?> |
relatedType |
protected Boolean |
savedWithParent |
backingObjectName, description, embeddedCommonMetadata, label, mergeAction, name, readOnly, shortLabel| Constructor and Description |
|---|
MetadataChildBase() |
| Modifier and Type | Method and Description |
|---|---|
List<DataObjectAttributeRelationship> |
getAttributeRelationships()
Gets the parent-child related fields
|
MetadataChild |
getEmbeddedMetadataChild()
Gets the metadata from the child
|
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
|
void |
setAttributeRelationships(List<DataObjectAttributeRelationship> attributeRelationships) |
void |
setDeletedWithParent(boolean deletedWithParent) |
void |
setEmbeddedMetadataChild(MetadataChild embeddedMetadataChild) |
void |
setInverseRelationship(MetadataChild inverseRelationship) |
void |
setLoadedAtParentLoadTime(boolean loadedAtParentLoadTime) |
void |
setLoadedDynamicallyUponUse(boolean loadedDynamicallyUponUse) |
void |
setRelatedType(Class<?> relatedType) |
void |
setSavedWithParent(boolean savedWithParent) |
String |
toString() |
getBackingObjectName, getDescription, getEmbeddedCommonMetadata, getLabel, getLabelFromPropertyName, getMergeAction, getName, getShortLabel, getUniqueKeyForMerging, isReadOnly, mergeLists, setBackingObjectName, setDescription, setEmbeddedCommonMetadata, setLabel, setMergeAction, setName, setReadOnly, setShortLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnlyprotected MetadataChild embeddedMetadataChild
protected Class<?> relatedType
protected List<DataObjectAttributeRelationship> attributeRelationships
protected MetadataChild inverseRelationship
protected Boolean savedWithParent
protected Boolean deletedWithParent
protected Boolean loadedAtParentLoadTime
protected Boolean loadedDynamicallyUponUse
public MetadataChildBase()
public boolean isSavedWithParent()
For related objects, whether this object will be automatically saved when the containing object is persisted.
isSavedWithParent in interface MetadataChildpublic void setSavedWithParent(boolean savedWithParent)
public boolean isDeletedWithParent()
This is a special case of the MetadataChild.isSavedWithParent() method. It probably would never be true if the
MetadataChild.isSavedWithParent() returns false.
isDeletedWithParent in interface MetadataChildpublic void setDeletedWithParent(boolean deletedWithParent)
public 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.
isLoadedAtParentLoadTime in interface MetadataChildpublic void setLoadedAtParentLoadTime(boolean loadedAtParentLoadTime)
public 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.)
isLoadedDynamicallyUponUse in interface MetadataChildpublic void setLoadedDynamicallyUponUse(boolean loadedDynamicallyUponUse)
public List<DataObjectAttributeRelationship> getAttributeRelationships()
Returns the related fields between the parent and child objects.
getAttributeRelationships in interface MetadataChildpublic void setAttributeRelationships(List<DataObjectAttributeRelationship> attributeRelationships)
public MetadataChild getInverseRelationship()
If this metadata element is part of a bi-directional relationship, this method returns the other side of the bi-directional relationship.
getInverseRelationship in interface MetadataChildpublic void setInverseRelationship(MetadataChild inverseRelationship)
public String getParentAttributeNameRelatedToChildAttributeName(String childAttribute)
For a given child key attribute, return the matching foreign key attribute on the parent object.
getParentAttributeNameRelatedToChildAttributeName in interface MetadataChildpublic String toString()
toString in class MetadataCommonBasepublic Class<?> getRelatedType()
This is the type of the object referenced by this relationship or contained in this collection.
getRelatedType in interface MetadataChildpublic void setRelatedType(Class<?> relatedType)
public MetadataChild getEmbeddedMetadataChild()
public void setEmbeddedMetadataChild(MetadataChild embeddedMetadataChild)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.