Class NavigablePath
java.lang.Object
org.hibernate.spi.NavigablePath
- All Implemented Interfaces:
Serializable, DotIdentifierSequence
- Direct Known Subclasses:
EntityIdentifierNavigablePath, TreatedNavigablePath
@Incubating
public class NavigablePath
extends Object
implements DotIdentifierSequence, Serializable
A compound name where the root path element is an entity name or a collection role
and each the path sub-path from the root references a domain or mapping model part
relative to a root path.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNavigablePath(String localName) NavigablePath(String rootName, String alias) NavigablePath(NavigablePath parent, String navigableName) NavigablePath(NavigablePath parent, String localName, String alias) NavigablePath(NavigablePath parent, String localName, String alias, String identifierForTableGroup, int hashCode) -
Method Summary
Modifier and TypeMethodDescriptionAppend a new part to the end of this sequence, returning the new representation.booleangetAlias()The full sequence text.The name of this leaf sequence part.The parent sequence part.inthashCode()booleanbooleanisParent(NavigablePath navigablePath) Determine whether this path is part of the given path's parentbooleanisParentOrEqual(NavigablePath navigablePath) Determine whether this path is part of the given path's parentbooleanisSuffix(DotIdentifierSequence dotIdentifierSequence) Determine whether the given path is a suffix of this pathprotected booleanprotected booleanbooleanpathsMatch(NavigablePath path) relativize(NavigablePath base) Ignores aliases in the resulting Stringprotected voidrelativize(NavigablePath base, NavigablePath.RelativePathCollector collector) toString()trimSuffix(DotIdentifierSequence suffix) Removes the suffix part from the NavigablePath, when the NavigablePath does not contain the suffix it returns null;Methods inherited from interface DotIdentifierSequence
getParts, isRoot
-
Field Details
-
IDENTIFIER_MAPPER_PROPERTY
- See Also:
-
-
Constructor Details
-
NavigablePath
-
NavigablePath
-
-
Method Details
-
getParent
Description copied from interface:DotIdentifierSequenceThe parent sequence part.Given the sequence
a.b.c, returns the sequencea.b.- Specified by:
getParentin interfaceDotIdentifierSequence
-
getLocalName
Description copied from interface:DotIdentifierSequenceThe name of this leaf sequence part.Given the sequence
a.b.c, returns the string"c".- Specified by:
getLocalNamein interfaceDotIdentifierSequence
-
getAlias
-
isAliased
public boolean isAliased() -
getIdentifierForTableGroup
-
hashCode
-
equals
-
localNamesMatch
-
append
Description copied from interface:DotIdentifierSequenceAppend a new part to the end of this sequence, returning the new representation.Given the sequence
a.b.c, appendingdresults in the new sequencea.b.c.d.- Specified by:
appendin interfaceDotIdentifierSequence
-
append
-
treatAs
-
treatAs
-
getRealParent
-
isSuffix
Determine whether the given path is a suffix of this path -
trimSuffix
Removes the suffix part from the NavigablePath, when the NavigablePath does not contain the suffix it returns null;- Parameters:
suffix- the part to remove from the NavigablePath- Returns:
- the NavigablePath stripped of the suffix part or null if the NavigablePath does not contain the suffix.
-
getFullPath
Description copied from interface:DotIdentifierSequenceThe full sequence text.Given the sequence
a.b.c, returns the string"a.b.c".- Specified by:
getFullPathin interfaceDotIdentifierSequence
-
toString
-