Class PathElement
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.query.selection.PathElement
-
Field Details
-
SELECTOR_PATTERN
-
-
Method Details
-
getSourceModel
-
getTargetModel
- Returns:
- the target model of the relation represented by this
PathElementorOptional.empty()if it's a field
-
getPartialPath
- Returns:
- the path from the root of the
PaththisPathElementbelongs to until thisPathElement
-
getElementName
-
isField
public boolean isField()- Returns:
- true if this
PathElementrepresents aFieldModel
-
isToMany
public boolean isToMany()- Returns:
- true if this
PathElementrepresents a to-manyRelationModel
-
toSourcePrimaryKeyPath
- Returns:
- a
Pathrepresenting the primary key of thegetSourceModel()
-
toTargetPrimaryKeyPath
- Returns:
- a
Pathrepresenting the primary key of thegetTargetModel()orOptional.empty()if it's a field
-
toTargetVersionPath
- Returns:
- a
Pathrepresenting the version field of thegetTargetModel()orOptional.empty()if it's a field
-
isSelectorRelation
public boolean isSelectorRelation() -
getRelationName
-
getSelector
-