Package org.hibernate.metamodel.mapping
Class SelectablePath
- java.lang.Object
-
- org.hibernate.metamodel.mapping.SelectablePath
-
- All Implemented Interfaces:
Serializable
,DotIdentifierSequence
@Incubating public class SelectablePath extends Object implements Serializable, DotIdentifierSequence
The path for a selectable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectablePath(String root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectablePath
append(String selectableName)
Append a new part to the end of this sequence, returning the new representation.boolean
equals(Object o)
String
getFullPath()
The full sequence text.String
getLocalName()
The name of this leaf sequence part.SelectablePath
getParent()
The parent sequence part.SelectablePath[]
getParts()
String
getSelectableName()
int
hashCode()
static SelectablePath
parse(String path)
SelectablePath[]
relativize(SelectablePath basePath)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.spi.DotIdentifierSequence
isRoot
-
-
-
-
Constructor Detail
-
SelectablePath
public SelectablePath(String root)
-
-
Method Detail
-
parse
public static SelectablePath parse(String path)
-
getParts
public SelectablePath[] getParts()
- Specified by:
getParts
in interfaceDotIdentifierSequence
-
relativize
public SelectablePath[] relativize(SelectablePath basePath)
-
getSelectableName
public String getSelectableName()
-
getParent
public SelectablePath getParent()
Description copied from interface:DotIdentifierSequence
The parent sequence part.Given the sequence
a.b.c
, returns the sequencea.b
.- Specified by:
getParent
in interfaceDotIdentifierSequence
-
append
public SelectablePath append(String selectableName)
Description copied from interface:DotIdentifierSequence
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
.- Specified by:
append
in interfaceDotIdentifierSequence
-
getLocalName
public String getLocalName()
Description copied from interface:DotIdentifierSequence
The name of this leaf sequence part.Given the sequence
a.b.c
, returns the string"c"
.- Specified by:
getLocalName
in interfaceDotIdentifierSequence
-
getFullPath
public String getFullPath()
Description copied from interface:DotIdentifierSequence
The full sequence text.Given the sequence
a.b.c
, returns the string"a.b.c"
.- Specified by:
getFullPath
in interfaceDotIdentifierSequence
-
-