Class NavigableRole
java.lang.Object
org.hibernate.metamodel.model.domain.NavigableRole
- All Implemented Interfaces:
Serializable
,DotIdentifierSequence
@Incubating
public final class NavigableRole
extends Object
implements DotIdentifierSequence, Serializable
A compound path which represents a
ModelPart
and uniquely identifies it with the runtime metamodel.
The root will name either an
entity or
collection.- See Also:
- API Note:
- This is an incubating SPI type, and will move to
org.hibernate.spi
. It might be renamed toorg.hibernate.metamodel.model.mapping.MappingRole
; the term "navigable" here is meant to indicate that we could navigate to the specificModelPart
given the role.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNavigableRole
(String localName) NavigableRole
(NavigableRole parent, String localName) NavigableRole
(NavigableRole parent, String localName, char separator) -
Method Summary
Modifier and TypeMethodDescriptionAppend a new part to the end of this sequence, returning the new representation.appendContainer
(String name) Uses#
as the separator rather than a period, the intention being that the incoming name is aModelPartContainer
of some sort.boolean
The full sequence text.The name of this leaf sequence part.The parent sequence part.int
hashCode()
toString()
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 Details
-
IDENTIFIER_MAPPER_PROPERTY
- See Also:
-
-
Constructor Details
-
NavigableRole
-
NavigableRole
public NavigableRole()
-
Method Details
-
append
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
-
appendContainer
Uses#
as the separator rather than a period, the intention being that the incoming name is aModelPartContainer
of some sort. -
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
-
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
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
-
toString
-
equals
-
hashCode
public int hashCode()
-