Class NavigableRole
- java.lang.Object
-
- org.hibernate.metamodel.model.domain.NavigableRole
-
- All Implemented Interfaces:
Serializable
,DotIdentifierSequence
public class NavigableRole extends Object implements DotIdentifierSequence, Serializable
Poorly named. Should have been named `org.hibernate.metamodel.model.mapping.MappingRole` Represents a compound path of `ModelPart` nodes rooted at an entity-name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER_MAPPER_PROPERTY
-
Constructor Summary
Constructors Constructor Description NavigableRole()
NavigableRole(String localName)
NavigableRole(NavigableRole parent, String localName)
NavigableRole(NavigableRole parent, String localName, char separator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NavigableRole
append(String name)
Add a new part to the end of this sequence, returning the new representation.NavigableRole
appendContainer(String name)
Uses `#` as the separator rather than `.`.boolean
equals(Object o)
String
getFullPath()
The full sequence text.String
getLocalName()
The name of this sequence part.String
getNavigableName()
NavigableRole
getParent()
The parent sequence part.int
hashCode()
boolean
isRoot()
Is this sequence node the root of the sequence.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
resolve
-
-
-
-
Field Detail
-
IDENTIFIER_MAPPER_PROPERTY
public static final String IDENTIFIER_MAPPER_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NavigableRole
public NavigableRole(NavigableRole parent, String localName)
-
NavigableRole
public NavigableRole(NavigableRole parent, String localName, char separator)
-
NavigableRole
public NavigableRole(String localName)
-
NavigableRole
public NavigableRole()
-
-
Method Detail
-
append
public NavigableRole append(String name)
Description copied from interface:DotIdentifierSequence
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`- Specified by:
append
in interfaceDotIdentifierSequence
-
appendContainer
public NavigableRole appendContainer(String name)
Uses `#` as the separator rather than `.`. The intention being that the incoming name is aModelPartContainer
of some sort todo (6.0) : better name?
-
getParent
public NavigableRole getParent()
Description copied from interface:DotIdentifierSequence
The parent sequence part. E.g., given the sequence `a.b.c`, this returns `a.b`- Specified by:
getParent
in interfaceDotIdentifierSequence
-
getLocalName
public String getLocalName()
Description copied from interface:DotIdentifierSequence
The name of this sequence part. E.g., given the sequence `a.b.c`, this returns `c`- Specified by:
getLocalName
in interfaceDotIdentifierSequence
-
getNavigableName
public String getNavigableName()
-
getFullPath
public String getFullPath()
Description copied from interface:DotIdentifierSequence
The full sequence text. E.g., given the sequence `a.b.c`, this returns `a.b.c`- Specified by:
getFullPath
in interfaceDotIdentifierSequence
-
isRoot
public boolean isRoot()
Description copied from interface:DotIdentifierSequence
Is this sequence node the root of the sequence. Same as checking the nullness ofDotIdentifierSequence.getParent()
- Specified by:
isRoot
in interfaceDotIdentifierSequence
-
-