Class AbstractAttributeKey
java.lang.Object
org.hibernate.boot.model.source.spi.AbstractAttributeKey
- Direct Known Subclasses:
AttributePath
,AttributeRole
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor for the base AttributePathprotected
AbstractAttributeKey
(String base) Constructor for the base AttributeRoleprotected
AbstractAttributeKey
(AbstractAttributeKey parent, String property) -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractAttributeKey
Creates a new AbstractAttributeKey by appending the passed part.boolean
protected abstract char
int
getDepth()
How many "parts" are there to this path/role?Access to the full path as a StringAccess to the parent partAccess to the end path part.int
hashCode()
boolean
Does this part represent a collection-element reference?boolean
isRoot()
Does this part represent a root.toString()
-
Constructor Details
-
AbstractAttributeKey
protected AbstractAttributeKey()Constructor for the base AttributePath -
AbstractAttributeKey
Constructor for the base AttributeRole -
AbstractAttributeKey
-
-
Method Details
-
getDepth
public int getDepth()How many "parts" are there to this path/role?- Returns:
- The number of parts.
-
getDelimiter
protected abstract char getDelimiter() -
append
Creates a new AbstractAttributeKey by appending the passed part.- Parameters:
property
- The part to append- Returns:
- The new AbstractAttributeKey
-
getParent
Access to the parent part- Returns:
- the parent part
-
getProperty
Access to the end path part.- Returns:
- the end path part
-
getFullPath
Access to the full path as a String- Returns:
- The full path as a String
-
isRoot
public boolean isRoot()Does this part represent a root.- Returns:
true
if this part is a root.
-
isCollectionElement
public boolean isCollectionElement()Does this part represent a collection-element reference?- Returns:
true
if the current property is a collection element marker "{element}"
-
toString
-
equals
-
hashCode
public int hashCode()
-