Interface Entity
- All Superinterfaces:
ValidationReportItemSubject
,ValueContext
- All Known Subinterfaces:
ChildEntity
,MainEntity
Provides a read-only access facade to a record
of a business object.
- Since:
- 6.1.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the business object model of this entity.getChildEntities
(Path aPath) Returns the child entities linked by the relationship defined by the node at the specified path.getChildEntities
(SchemaNode aRelationshipNode) Returns the child entities linked by the relationship defined by the specified node.getChildEntity
(Path aPath) Returns the entities linked by the relationship defined by the node at the specified path.getChildEntity
(SchemaNode aRelationshipNode) Returns the entity linked by the relationship defined by the specified node.Returns the record linked to this entity.Returns the session used for creating this business object.Methods inherited from interface com.orchestranetworks.service.ValidationReportItemSubject
isDatasetOrRecordSubject, isTableSubject
Methods inherited from interface com.orchestranetworks.instance.ValueContext
getAdaptationInstance, getAdaptationTable, getHome, getNode, getNode, getValue, getValue, getValue
-
Method Details
-
getRecord
Adaptation getRecord()Returns the record linked to this entity. -
getBusinessObjectModel
BusinessObjectModel getBusinessObjectModel()Returns the business object model of this entity. -
getChildEntities
Returns the child entities linked by the relationship defined by the specified node.- Throws:
IllegalArgumentException
- if the specified node does not exist.IllegalArgumentException
- if the specified node is not associated to a direct child relationship of this entity.- See Also:
-
getChildEntities
Returns the child entities linked by the relationship defined by the node at the specified path.- Throws:
PathAccessException
- if no node exist at the specified path.IllegalArgumentException
- if the node targeted by the specified path does not define arelationship
.IllegalArgumentException
- if the node targeted by the specified path is not associated to a direct child relationship of this entity.- See Also:
-
getChildEntity
Returns the entity linked by the relationship defined by the specified node.- Throws:
IllegalArgumentException
- if the specified node does not exist.IllegalArgumentException
- if the specified node is not associated to a direct child relationship of this entity.IllegalArgumentException
- if the related data model relationship is not an single valued relationship. That is, a record of the table that defines the relationship must refer to only one record in the target table of the relationship.
-
getChildEntity
Returns the entities linked by the relationship defined by the node at the specified path.- Throws:
PathAccessException
- if no node exist at the specified path.IllegalArgumentException
- if the node targeted by the specified path does not define arelationship
.IllegalArgumentException
- if the node targeted by the specified path is not associated to a direct child relationship of this entity.IllegalArgumentException
- if the related data model relationship is not an single valued relationship. That is, a record of the table that defines the relationship must refer to only one record in the target table of the relationship.
-
getSessionOrNull
Session getSessionOrNull()Returns the session used for creating this business object.
-