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
PathElement
orOptional.empty()
if it's a field
-
getPartialPath
- Returns:
- the path from the root of the
Path
thisPathElement
belongs to until thisPathElement
-
getElementName
-
isField
public boolean isField()- Returns:
- true if this
PathElement
represents aFieldModel
-
isToMany
public boolean isToMany()- Returns:
- true if this
PathElement
represents a to-manyRelationModel
-
toSourcePrimaryKeyPath
- Returns:
- a
Path
representing the primary key of thegetSourceModel()
-
toTargetPrimaryKeyPath
- Returns:
- a
Path
representing the primary key of thegetTargetModel()
orOptional.empty()
if it's a field
-
toTargetVersionPath
- Returns:
- a
Path
representing the version field of thegetTargetModel()
orOptional.empty()
if it's a field
-
isSelectorRelation
public boolean isSelectorRelation() -
getRelationName
-
getSelector
-