类 ClassPropertyHolder
- java.lang.Object
-
- org.hibernate.cfg.AbstractPropertyHolder
-
- org.hibernate.cfg.ClassPropertyHolder
-
- 所有已实现的接口:
PropertyHolder
public class ClassPropertyHolder extends AbstractPropertyHolder
- 作者:
- Emmanuel Bernard
-
-
字段概要
-
从类继承的字段 org.hibernate.cfg.AbstractPropertyHolder
parent
-
-
构造器概要
构造器 构造器 说明 ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JoinaddJoin(javax.persistence.JoinTable joinTableAnn, boolean noDelayInPkColumnCreation)voidaddProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)voidaddProperty(Property prop, Ejb3Column[] columns, org.hibernate.annotations.common.reflection.XClass declaringClass)protected Map<String,AttributeConversionInfo>buildAttributeConversionInfoMap(org.hibernate.annotations.common.reflection.XClass entityXClass)StringgetClassName()StringgetEntityName()StringgetEntityOwnerClassName()KeyValuegetIdentifier()PersistentClassgetPersistentClass()TablegetTable()booleanisComponent()booleanisEntity()booleanisOrWithinEmbeddedId()Return true if this component is or is embedded in a @EmbeddedIdbooleanisWithinElementCollection()Return true if this component is within an @ElementCollection.protected AttributeConversionInfolocateAttributeConversionInfo(String path)protected AttributeConversionInfolocateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)protected StringnormalizeCompositePath(String attributeName)protected StringnormalizeCompositePathForLogging(String attributeName)voidstartingProperty(org.hibernate.annotations.common.reflection.XProperty property)Called during binding to allow the PropertyHolder to inspect its discovered properties.StringtoString()-
从类继承的方法 org.hibernate.cfg.AbstractPropertyHolder
buildExceptionFromInstantiationError, getContext, getJoinTable, getOverriddenColumn, getOverriddenForeignKey, getOverriddenJoinColumn, getOverriddenJoinTable, getPath, isInIdClass, makeAttributeConverterDescriptor, resolveAttributeConverterDescriptor, setCurrentProperty, setInIdClass, setParentProperty
-
-
-
-
构造器详细资料
-
ClassPropertyHolder
public ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
-
ClassPropertyHolder
public ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
-
-
方法详细资料
-
normalizeCompositePathForLogging
protected String normalizeCompositePathForLogging(String attributeName)
-
buildAttributeConversionInfoMap
protected Map<String,AttributeConversionInfo> buildAttributeConversionInfoMap(org.hibernate.annotations.common.reflection.XClass entityXClass)
-
startingProperty
public void startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
从接口复制的说明:PropertyHolderCalled during binding to allow the PropertyHolder to inspect its discovered properties. Mainly this is used in collecting attribute conversion declarations (via @Convert/@Converts).- 参数:
property- The property
-
locateAttributeConversionInfo
protected AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)
-
locateAttributeConversionInfo
protected AttributeConversionInfo locateAttributeConversionInfo(String path)
-
getEntityName
public String getEntityName()
-
addProperty
public void addProperty(Property prop, Ejb3Column[] columns, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
addProperty
public void addProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
addJoin
public Join addJoin(javax.persistence.JoinTable joinTableAnn, boolean noDelayInPkColumnCreation)
-
getClassName
public String getClassName()
-
getEntityOwnerClassName
public String getEntityOwnerClassName()
-
getTable
public Table getTable()
-
isComponent
public boolean isComponent()
-
isEntity
public boolean isEntity()
-
getPersistentClass
public PersistentClass getPersistentClass()
-
getIdentifier
public KeyValue getIdentifier()
-
isOrWithinEmbeddedId
public boolean isOrWithinEmbeddedId()
从接口复制的说明:PropertyHolderReturn true if this component is or is embedded in a @EmbeddedId
-
isWithinElementCollection
public boolean isWithinElementCollection()
从接口复制的说明:PropertyHolderReturn true if this component is within an @ElementCollection.
-
-