Package org.hibernate.spi
Interface DotIdentifierSequence
- All Known Subinterfaces:
FullyQualifiedReflectivePathSource
- All Known Implementing Classes:
EntityIdentifierNavigablePath,FullyQualifiedReflectivePath,FullyQualifiedReflectivePathTerminal,NavigablePath,NavigableRole,SelectablePath,TreatedNavigablePath
public interface DotIdentifierSequence
A compound name.
Hibernate often deals with compound names/paths. This interface defines a standard way of interacting with them.
-
Method Summary
Modifier and TypeMethodDescriptionAppend a new part to the end of this sequence, returning the new representation.The full sequence text.The name of this leaf sequence part.@Nullable DotIdentifierSequenceThe parent sequence part.default DotIdentifierSequence[]getParts()default booleanisRoot()Is this sequence node the root of the sequence?
-
Method Details
-
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
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
-
isRoot
default boolean isRoot()Is this sequence node the root of the sequence?Same as checking the nullness of
getParent().
-