Package org.hibernate.spi
Class EntityIdentifierNavigablePath
- java.lang.Object
-
- org.hibernate.spi.NavigablePath
-
- org.hibernate.spi.EntityIdentifierNavigablePath
-
- All Implemented Interfaces:
Serializable
,DotIdentifierSequence
@Incubating public class EntityIdentifierNavigablePath extends NavigablePath
Specialized implementation ofNavigablePath
for handling special cases pertaining to entity identifiers.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.spi.NavigablePath
NavigablePath.FullPathCalculator, NavigablePath.RelativePathCollector
-
-
Field Summary
-
Fields inherited from class org.hibernate.spi.NavigablePath
IDENTIFIER_MAPPER_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description EntityIdentifierNavigablePath(NavigablePath parent, String identifierAttributeName)
EntityIdentifierNavigablePath(NavigablePath parent, String alias, String identifierAttributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIdentifierAttributeName()
String
getLocalName()
The name of this leaf sequence part.protected boolean
localNamesMatch(DotIdentifierSequence otherPath)
protected boolean
localNamesMatch(EntityIdentifierNavigablePath otherPath)
-
Methods inherited from class org.hibernate.spi.NavigablePath
append, append, calculateIdMapperFullPath, calculateRootFullPath, equals, getAlias, getFullPath, getIdentifierForTableGroup, getParent, getRealParent, hashCode, isAliased, isParent, isParentOrEqual, isSuffix, pathsMatch, relativize, relativize, toString, treatAs, treatAs, trimSuffix
-
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
-
-
-
-
Constructor Detail
-
EntityIdentifierNavigablePath
public EntityIdentifierNavigablePath(NavigablePath parent, String identifierAttributeName)
-
EntityIdentifierNavigablePath
public EntityIdentifierNavigablePath(NavigablePath parent, String alias, String identifierAttributeName)
-
-
Method Detail
-
getIdentifierAttributeName
public String getIdentifierAttributeName()
-
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
- Overrides:
getLocalName
in classNavigablePath
-
localNamesMatch
protected boolean localNamesMatch(DotIdentifierSequence otherPath)
- Overrides:
localNamesMatch
in classNavigablePath
-
localNamesMatch
protected boolean localNamesMatch(EntityIdentifierNavigablePath otherPath)
- Overrides:
localNamesMatch
in classNavigablePath
-
-