Interface AssociationLink
-
- All Superinterfaces:
SchemaNodeExplicitRelationship
- All Known Subinterfaces:
AssociationLinkByLinkTable,AssociationLinkByTableRefInverse,AssociationLinkByXPathLink
public interface AssociationLink extends SchemaNodeExplicitRelationship
This interface contains the information for an association link (osd:associationproperty).- Since:
- 5.5.0
- See Also:
- Associations,
SchemaNode.getAssociationLink(),ExplicitRelationship
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestResultgetAssociationResult(Adaptation aRecord)Returns the result of the association link, in the context of the specified record.StringgetConstraintPredicate()Returns the XPath expression (propertyconstraint/xpath) defined to restrict associated records.AdaptationReferencegetDataSetReference()Returns the reference of the dataset of this association, if an external dataset is defined in the data model (propertydataSet); otherwise returnsnull.HomeKeygetDataSpaceReference()Returns the reference of the dataspace of this association, if an external dataset in another dataspace is defined by the data model (propertydataSpace); otherwise returnsnull.intgetMaxOccurs()Returns the value ofmaxOccurs/value.intgetMinOccurs()Returns the value ofminOccurs/value.Class<?>getRecordFormFactoryClass()Returns the specificUserServiceAssociationRecordFormFactoryclassdefined on this association node (propertyrecordForm osd:class) ornullif noUserServiceAssociationRecordFormFactoryclasshas been defined.AdaptationTablegetTargetTable(Adaptation aRecordOrDataSet)Returns the target table of this association.StringgetXPathFilter()Returns the XPath expression (propertyxpathFilter) defined to filter the result of this association.booleanisConsistent(Adaptation aRecordOrDataSet)Returnstrueif this association is consistent with the specified record or dataset.booleanisLinkTable()Returnstrueif this association is over a link table.booleanisTableRefInverse()Returnstrueif this association is the inverse of a foreign key.booleanisXPathLink()Returnstrueif this association is over an XPath predicate.-
Methods inherited from interface com.orchestranetworks.schema.relationships.SchemaNodeExplicitRelationship
getBreadcrumbProperties, getContainerHome, getContainerReference, getExplicitRelationship, getExplicitRelationship, getOwnerNode, getResult, getTableNode, getTableNode, isAssociationLink, isDynamic, isSelectionLink, isTableRefLink
-
-
-
-
Method Detail
-
getAssociationResult
RequestResult getAssociationResult(Adaptation aRecord)
Returns the result of the association link, in the context of the specified record.
-
getTargetTable
AdaptationTable getTargetTable(Adaptation aRecordOrDataSet)
Returns the target table of this association.
-
getDataSetReference
AdaptationReference getDataSetReference()
Returns the reference of the dataset of this association, if an external dataset is defined in the data model (propertydataSet); otherwise returnsnull.
-
getDataSpaceReference
HomeKey getDataSpaceReference()
Returns the reference of the dataspace of this association, if an external dataset in another dataspace is defined by the data model (propertydataSpace); otherwise returnsnull.
-
getMinOccurs
int getMinOccurs()
Returns the value ofminOccurs/value.- Since:
- 5.5.1
-
getMaxOccurs
int getMaxOccurs()
Returns the value ofmaxOccurs/value. Returns -1 if this property is not defined.- Since:
- 5.5.1
-
getXPathFilter
String getXPathFilter()
Returns the XPath expression (propertyxpathFilter) defined to filter the result of this association.- Since:
- 5.5.1
-
getConstraintPredicate
String getConstraintPredicate()
Returns the XPath expression (propertyconstraint/xpath) defined to restrict associated records.- Since:
- 5.5.1
-
isLinkTable
boolean isLinkTable()
Returnstrueif this association is over a link table.- Since:
- 5.5.1
- See Also:
AssociationLinkByLinkTable
-
isTableRefInverse
boolean isTableRefInverse()
Returnstrueif this association is the inverse of a foreign key.- Since:
- 5.5.1
- See Also:
AssociationLinkByTableRefInverse
-
isXPathLink
boolean isXPathLink()
Returnstrueif this association is over an XPath predicate.- Since:
- 5.8.1
- See Also:
AssociationLinkByXPathLink
-
getRecordFormFactoryClass
Class<?> getRecordFormFactoryClass()
Returns the specificUserServiceAssociationRecordFormFactoryclassdefined on this association node (propertyrecordForm osd:class) ornullif noUserServiceAssociationRecordFormFactoryclasshas been defined.- Since:
- 5.9.0
-
isConsistent
boolean isConsistent(Adaptation aRecordOrDataSet)
Returnstrueif this association is consistent with the specified record or dataset.An association element is inconsistent with a given record or dataset when its definition is based on a reverse foreign key or a link table and the foreign key to the source table does not target the specified dataset.
- Since:
- 6.0.8
-
-