@Entity public class MapReference extends Root implements IExpressionReferencedObject, IModelObjectReference
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFCOGlobalId()
Gets the first class object global id.
|
IModelObject |
getFCOObject()
Gets the first class object referenced by this map reference.
|
java.lang.String |
getFCOQualifiedName()
Gets the fully qualified name for the first class object.
|
java.lang.String |
getFullQualifiedName()
Gets a combination of FCO qualified name (if any) and the referenced object qualified name.
|
java.lang.String |
getName()
Gets the name of the referenced object.
|
IMapping |
getOwnerMapping()
Gets the mapping that owns this map reference.
|
IModelObject |
getReferencedObject()
Gets the referenced object.
|
java.lang.String |
getReferencedObjectName()
Gets a fully qualified displayable name for the referenced object.
|
IModelObject |
getReferencedShortcutObject()
Gets the referenced object accessed through a shortcut.
|
java.lang.String |
getRefObjectGlobalId()
Gets the global id of the referenced object.
|
java.lang.String |
getRefText()
Gets the reference text of this map reference.
|
IMapRootContainer |
getRootContainerOwner()
Gets the map root container of this reference.
|
boolean |
isReferenceValid()
Checks if the referenced object is found (reference resolved).
|
void |
refresh(boolean entityManagerRefresh)
Forces the reference to be re-resolved by finding the referenced object using the persistence
context.
|
java.lang.String |
toString() |
void |
validateReference(java.lang.Object parentObj)
Attempts to resolve the reference, and if found, updates the global id,
numeric id, and qualified name fields.
|
getGlobalId, getNumericId, hasCustomizedPersistenceMethodFor, invokeCustomizedPersistenceMethodForgetNumericIdgetGlobalIdpublic IModelObject getReferencedObject() throws AdapterException
getReferencedObject in interface IModelObjectReferenceAdapterExceptionpublic boolean isReferenceValid()
public java.lang.String getFullQualifiedName()
public java.lang.String getRefObjectGlobalId()
getRefObjectGlobalId in interface IModelObjectReferencepublic java.lang.String getFCOQualifiedName()
getFCOQualifiedName in interface IModelObjectReferencepublic IMapRootContainer getRootContainerOwner()
public java.lang.String getName()
getName in interface IModelObjectReferencegetName in interface IExpressionReferencedObjectgetName in interface IRootgetName in class Rootpublic java.lang.String getRefText()
throws AdapterException
getRefText in interface IExpressionReferencedObjectAdapterExceptionpublic java.lang.String getReferencedObjectName()
public void validateReference(java.lang.Object parentObj)
throws AdapterException,
MappingException
parentObj - The new parent object to be used to resolve the reference. If null,
then the original object is found.AdapterExceptionMappingExceptionpublic IModelObject getReferencedShortcutObject() throws AdapterException
getReferencedShortcutObject in interface IModelObjectReferenceAdapterExceptionpublic java.lang.String getFCOGlobalId()
getFCOGlobalId in interface IModelObjectReferencepublic IModelObject getFCOObject() throws AdapterException
getFCOObject in interface IModelObjectReferenceAdapterExceptionpublic void refresh(boolean entityManagerRefresh)
throws AdapterException
entityManagerRefresh - If true, it will detach the referenced object from the persistence context
which will force a re-query of the object from the database. Use to detect object deletion in
an external transaction.AdapterExceptionpublic IMapping getOwnerMapping() throws AdapterException
getOwnerMapping in interface IModelObjectReferenceAdapterException