Class NavigableRole
- java.lang.Object
-
- org.hibernate.metamodel.model.domain.NavigableRole
-
- All Implemented Interfaces:
Serializable,DotIdentifierSequence
public final class NavigableRole extends Object implements DotIdentifierSequence, Serializable
A compound path which represents aModelPartand uniquely identifies it with the runtime metamodel. The root will name either an entity or collection- See Also:
- Serialized Form
- API Note:
- Poorly named. Should probably have been `org.hibernate.metamodel.model.mapping.MappingRole`;
the term "navigable" here is meant to indicate that we could navigate to the specific
ModelPartgiven the role.
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTIFIER_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 NavigableRoleappend(String name)Append a new part to the end of this sequence, returning the new representation.NavigableRoleappendContainer(String name)Uses `#` as the separator rather than `.`.booleanequals(Object o)StringgetFullPath()The full sequence text.StringgetLocalName()The name of this leaf sequence part.StringgetNavigableName()NavigableRolegetParent()The parent sequence part.inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.spi.DotIdentifierSequence
getParts, isRoot
-
-
-
-
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:DotIdentifierSequenceAppend 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.- Specified by:
appendin interfaceDotIdentifierSequence
-
appendContainer
public NavigableRole appendContainer(String name)
Uses `#` as the separator rather than `.`. The intention being that the incoming name is aModelPartContainerof some sort todo (6.0) : better name?
-
getParent
public NavigableRole getParent()
Description copied from interface:DotIdentifierSequenceThe parent sequence part.Given the sequence
a.b.c, returns the sequencea.b.- Specified by:
getParentin interfaceDotIdentifierSequence
-
getLocalName
public String getLocalName()
Description copied from interface:DotIdentifierSequenceThe name of this leaf sequence part.Given the sequence
a.b.c, returns the string"c".- Specified by:
getLocalNamein interfaceDotIdentifierSequence
-
getNavigableName
public String getNavigableName()
-
getFullPath
public String getFullPath()
Description copied from interface:DotIdentifierSequenceThe full sequence text.Given the sequence
a.b.c, returns the string"a.b.c".- Specified by:
getFullPathin interfaceDotIdentifierSequence
-
-