Package org.hibernate.spi
Interface DotIdentifierSequence
-
- All Known Implementing Classes:
EntityIdentifierNavigablePath,NavigablePath,NavigableRole,PropertyPath,SelectablePath,TreatedNavigablePath
public interface DotIdentifierSequenceA compound name.Hibernate often deals with compound names/paths. This interface defines a standard way of interacting with them.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DotIdentifierSequenceappend(String subPathName)Append a new part to the end of this sequence, returning the new representation.StringgetFullPath()The full sequence text.StringgetLocalName()The name of this leaf sequence part.@Nullable DotIdentifierSequencegetParent()The parent sequence part.default DotIdentifierSequence[]getParts()default booleanisRoot()Is this sequence node the root of the sequence?
-
-
-
Method Detail
-
getParent
@Nullable DotIdentifierSequence getParent()
The parent sequence part.Given the sequence
a.b.c, returns the sequencea.b.
-
getLocalName
String getLocalName()
The name of this leaf sequence part.Given the sequence
a.b.c, returns the string"c".
-
getFullPath
String getFullPath()
The full sequence text.Given the sequence
a.b.c, returns the string"a.b.c".- Implementation Note:
- This method may dynamically build the returned string and should be avoided for critical paths (comparisons,for example).
-
append
DotIdentifierSequence append(String subPathName)
Append 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.
-
getParts
default DotIdentifierSequence[] getParts()
-
isRoot
default boolean isRoot()
Is this sequence node the root of the sequence?Same as checking the nullness of
getParent().
-
-