Package org.hibernate.query
Class NavigablePath
- java.lang.Object
-
- org.hibernate.query.NavigablePath
-
- All Implemented Interfaces:
Serializable
,DotIdentifierSequence
- Direct Known Subclasses:
EntityIdentifierNavigablePath
,TreatedNavigablePath
public class NavigablePath extends Object implements DotIdentifierSequence, Serializable
Compound-name where each path references to a domain or mapping model-part relative to a root path. Generally this root path is an entity name or a collection-role.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER_MAPPER_PROPERTY
-
Constructor Summary
Constructors Constructor Description NavigablePath()
NavigablePath(String localName)
NavigablePath(String rootName, String alias)
NavigablePath(NavigablePath parent, String navigableName)
NavigablePath(NavigablePath parent, String property, String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NavigablePath
append(String property)
NavigablePath
append(String property, String alias)
boolean
equals(Object other)
String
getFullPath()
String
getIdentifierForTableGroup()
String
getLocalName()
NavigablePath
getParent()
NavigablePath
getRealParent()
String
getUnaliasedLocalName()
int
hashCode()
boolean
isParent(NavigablePath navigablePath)
String
toString()
NavigablePath
treatAs(String entityName)
NavigablePath
treatAs(String entityName, String alias)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.DotIdentifierSequence
isRoot, resolve
-
-
-
-
Field Detail
-
IDENTIFIER_MAPPER_PROPERTY
public static final String IDENTIFIER_MAPPER_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NavigablePath
public NavigablePath(NavigablePath parent, String navigableName)
-
NavigablePath
public NavigablePath(String localName)
-
NavigablePath
public NavigablePath(NavigablePath parent, String property, String alias)
-
NavigablePath
public NavigablePath()
-
-
Method Detail
-
treatAs
public NavigablePath treatAs(String entityName)
-
treatAs
public NavigablePath treatAs(String entityName, String alias)
-
append
public NavigablePath append(String property)
- Specified by:
append
in interfaceDotIdentifierSequence
-
append
public NavigablePath append(String property, String alias)
-
getParent
public NavigablePath getParent()
- Specified by:
getParent
in interfaceDotIdentifierSequence
-
getRealParent
public NavigablePath getRealParent()
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceDotIdentifierSequence
-
getUnaliasedLocalName
public String getUnaliasedLocalName()
-
getFullPath
public String getFullPath()
- Specified by:
getFullPath
in interfaceDotIdentifierSequence
-
getIdentifierForTableGroup
public String getIdentifierForTableGroup()
-
isParent
public boolean isParent(NavigablePath navigablePath)
-
-