Package org.hibernate.spi
Interface DotIdentifierSequence
-
- All Known Subinterfaces:
FullyQualifiedReflectivePathSource
- All Known Implementing Classes:
EntityIdentifierNavigablePath
,FullyQualifiedReflectivePath
,FullyQualifiedReflectivePathTerminal
,NavigablePath
,NavigableRole
,PropertyPath
,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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DotIdentifierSequence
append(String subPathName)
Append a new part to the end of this sequence, returning the new representation.String
getFullPath()
The full sequence text.String
getLocalName()
The name of this leaf sequence part.@Nullable DotIdentifierSequence
getParent()
The parent sequence part.default DotIdentifierSequence[]
getParts()
default boolean
isRoot()
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
, appendingd
results 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()
.
-
-