Package org.hibernate.spi
Interface DotIdentifierSequence
-
- All Known Subinterfaces:
FullyQualifiedReflectivePathSource
- All Known Implementing Classes:
EntityIdentifierNavigablePath
,FullyQualifiedReflectivePath
,FullyQualifiedReflectivePathTerminal
,NavigablePath
,NavigableRole
,PropertyPath
,TreatedNavigablePath
public interface DotIdentifierSequence
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)
Add 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 sequence part.DotIdentifierSequence
getParent()
The parent sequence part.default boolean
isRoot()
Is this sequence node the root of the sequence.default <T> T
resolve(T base, BiFunction<T,String,T> baseResolver, BiFunction<T,String,T> resolver)
-
-
-
Method Detail
-
getParent
DotIdentifierSequence getParent()
The parent sequence part. E.g., given the sequence `a.b.c`, this returns `a.b`
-
getLocalName
String getLocalName()
The name of this sequence part. E.g., given the sequence `a.b.c`, this returns `c`
-
getFullPath
String getFullPath()
The full sequence text. E.g., given the sequence `a.b.c`, this returns `a.b.c`
-
append
DotIdentifierSequence append(String subPathName)
Add a new part to the end of this sequence, returning the new representation. E.g., given the sequence `a.b.c` and appending `d` would return a new sequence `a.b.c.d`
-
isRoot
default boolean isRoot()
Is this sequence node the root of the sequence. Same as checking the nullness ofgetParent()
-
resolve
default <T> T resolve(T base, BiFunction<T,String,T> baseResolver, BiFunction<T,String,T> resolver)
-
-