Class AbstractAttributeKey
- java.lang.Object
-
- org.hibernate.boot.model.source.spi.AbstractAttributeKey
-
- Direct Known Subclasses:
AttributePath,AttributeRole
public abstract class AbstractAttributeKey extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAttributeKey()Constructor for the base AttributePathprotectedAbstractAttributeKey(java.lang.String base)Constructor for the base AttributeRoleprotectedAbstractAttributeKey(AbstractAttributeKey parent, java.lang.String property)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractAttributeKeyappend(java.lang.String property)Creates a new AbstractAttributeKey by appending the passed part.booleanequals(java.lang.Object o)protected abstract chargetDelimiter()intgetDepth()How many "parts" are there to this path/role?java.lang.StringgetFullPath()Access to the full path as a StringAbstractAttributeKeygetParent()Access to the parent partjava.lang.StringgetProperty()Access to the end path part.inthashCode()booleanisCollectionElement()Does this part represent a collection-element reference?booleanisPartOfCollectionElement()Does any part represent a collection-element reference?booleanisRoot()Does this part represent a root.java.lang.StringstripCollectionElementMarker()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AbstractAttributeKey
protected AbstractAttributeKey()
Constructor for the base AttributePath
-
AbstractAttributeKey
protected AbstractAttributeKey(java.lang.String base)
Constructor for the base AttributeRole
-
AbstractAttributeKey
protected AbstractAttributeKey(AbstractAttributeKey parent, java.lang.String property)
-
-
Method Detail
-
getDepth
public int getDepth()
How many "parts" are there to this path/role?- Returns:
- The number of parts.
-
getDelimiter
protected abstract char getDelimiter()
-
append
public abstract AbstractAttributeKey append(java.lang.String property)
Creates a new AbstractAttributeKey by appending the passed part.- Parameters:
property- The part to append- Returns:
- The new AbstractAttributeKey
-
getParent
public AbstractAttributeKey getParent()
Access to the parent part- Returns:
- the parent part
-
getProperty
public java.lang.String getProperty()
Access to the end path part.- Returns:
- the end path part
-
getFullPath
public java.lang.String 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:
trueif this part is a root.
-
isCollectionElement
public boolean isCollectionElement()
Does this part represent a collection-element reference?- Returns:
trueif the current property is a collection element marker (COLLECTION_ELEMENT
-
isPartOfCollectionElement
public boolean isPartOfCollectionElement()
Does any part represent a collection-element reference?- Returns:
trueif this part or any parent part is a collection element marker (COLLECTION_ELEMENT.
-
stripCollectionElementMarker
public java.lang.String stripCollectionElementMarker()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-