类 AbstractAttributeKey
- java.lang.Object
-
- org.hibernate.boot.model.source.spi.AbstractAttributeKey
-
- 直接已知子类:
AttributePath,AttributeRole
public abstract class AbstractAttributeKey extends Object
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractAttributeKey()Constructor for the base AttributePathprotectedAbstractAttributeKey(String base)Constructor for the base AttributeRoleprotectedAbstractAttributeKey(AbstractAttributeKey parent, String property)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract AbstractAttributeKeyappend(String property)Creates a new AbstractAttributeKey by appending the passed part.booleanequals(Object o)protected abstract chargetDelimiter()intgetDepth()How many "parts" are there to this path/role?StringgetFullPath()Access to the full path as a StringAbstractAttributeKeygetParent()Access to the parent partStringgetProperty()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.StringstripCollectionElementMarker()StringtoString()
-
-
-
构造器详细资料
-
AbstractAttributeKey
protected AbstractAttributeKey()
Constructor for the base AttributePath
-
AbstractAttributeKey
protected AbstractAttributeKey(String base)
Constructor for the base AttributeRole
-
AbstractAttributeKey
protected AbstractAttributeKey(AbstractAttributeKey parent, String property)
-
-
方法详细资料
-
getDepth
public int getDepth()
How many "parts" are there to this path/role?- 返回:
- The number of parts.
-
getDelimiter
protected abstract char getDelimiter()
-
append
public abstract AbstractAttributeKey append(String property)
Creates a new AbstractAttributeKey by appending the passed part.- 参数:
property- The part to append- 返回:
- The new AbstractAttributeKey
-
getParent
public AbstractAttributeKey getParent()
Access to the parent part- 返回:
- the parent part
-
getProperty
public String getProperty()
Access to the end path part.- 返回:
- the end path part
-
getFullPath
public String getFullPath()
Access to the full path as a String- 返回:
- The full path as a String
-
isRoot
public boolean isRoot()
Does this part represent a root.- 返回:
trueif this part is a root.
-
isCollectionElement
public boolean isCollectionElement()
Does this part represent a collection-element reference?- 返回:
trueif the current property is a collection element marker (COLLECTION_ELEMENT
-
isPartOfCollectionElement
public boolean isPartOfCollectionElement()
Does any part represent a collection-element reference?- 返回:
trueif this part or any parent part is a collection element marker (COLLECTION_ELEMENT.
-
stripCollectionElementMarker
public String stripCollectionElementMarker()
-
-