Class EntityDataReference
java.lang.Object
com.priint.pubserver.plugin.entitydata.EntityDataReference
- All Implemented Interfaces:
PersistentData,Serializable
Data object for entity type EntityDataReference
EntityDataReference data are used as parentRef field in ContentMetaData
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDataReference(String identifier, String entityModelId, String entityId, Entity.DataClass entityClassName) -
Method Summary
Modifier and TypeMethodDescriptionGets the entityClassName of this entityDataReferenceGets the entityId of this entityDataReferenceGets the entityModelId of this entityDataReferenceGets the identifier of this entityDataReferenceGets the referenced object - if already attached.getReferencedObject(String sessionID) Gets the referenced object.voidsetEntityClassName(Entity.DataClass entityClassName) Sets the entityClassName property of this entityDataReferencevoidsetEntityId(String entityId) Sets the entityId property of this entityDataReferencevoidsetEntityModelId(String entityModelId) Sets the entityModelId property of this entityDataReferencevoidsetIdentifier(String identifier) Sets the identifier property of this entityDataReferencetoString()
-
Constructor Details
-
EntityDataReference
public EntityDataReference() -
EntityDataReference
public EntityDataReference(String identifier, String entityModelId, String entityId, Entity.DataClass entityClassName)
-
-
Method Details
-
getIdentifier
Gets the identifier of this entityDataReference
- Specified by:
getIdentifierin interfacePersistentData- Returns:
- the identifier of this entityDataReference
-
setIdentifier
Sets the identifier property of this entityDataReference
- Parameters:
identifier-
-
getEntityModelId
Gets the entityModelId of this entityDataReference
- Returns:
- the entityModelId of this entityDataReference
-
setEntityModelId
Sets the entityModelId property of this entityDataReference
- Parameters:
entityModelId-
-
getEntityId
Gets the entityId of this entityDataReference
- Returns:
- the entityId of this entityDataReference
-
setEntityId
Sets the entityId property of this entityDataReference
- Parameters:
entityId-
-
getReferencedObject
Gets the referenced object - if already attached. Otherwise returns null.Use
getReferencedObject(String)method to read referenced object from content system if not already attached.- Returns:
- referenced object or null
-
getEntityClassName
Gets the entityClassName of this entityDataReference
- Returns:
- the entityClassName of this entityDataReference
-
setEntityClassName
Sets the entityClassName property of this entityDataReference
- Parameters:
entityClassName-
-
getReferencedObject
Gets the referenced object. If not already attached this method will try to read the referenced object from the content system via entity manager.- Returns:
- referenced object or null
-
toString
-