Package org.hibernate.cfg
Class ClassPropertyHolder
- java.lang.Object
-
- org.hibernate.cfg.AbstractPropertyHolder
-
- org.hibernate.cfg.ClassPropertyHolder
-
- All Implemented Interfaces:
PropertyHolder
public class ClassPropertyHolder extends AbstractPropertyHolder
-
-
Field Summary
-
Fields inherited from class org.hibernate.cfg.AbstractPropertyHolder
parent
-
-
Constructor Summary
Constructors Constructor Description ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, java.util.Map<java.lang.String,Join> joins, MetadataBuildingContext context, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Join
addJoin(JoinTable joinTableAnn, boolean noDelayInPkColumnCreation)
void
addProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)
void
addProperty(Property prop, Ejb3Column[] columns, org.hibernate.annotations.common.reflection.XClass declaringClass)
protected java.util.Map<java.lang.String,AttributeConversionInfo>
buildAttributeConversionInfoMap(org.hibernate.annotations.common.reflection.XClass entityXClass)
java.lang.String
getClassName()
java.lang.String
getEntityName()
java.lang.String
getEntityOwnerClassName()
KeyValue
getIdentifier()
PersistentClass
getPersistentClass()
Table
getTable()
boolean
isComponent()
boolean
isEntity()
boolean
isOrWithinEmbeddedId()
Return true if this component is or is embedded in a @EmbeddedIdboolean
isWithinElementCollection()
Return true if this component is withing an @ElementCollection.protected AttributeConversionInfo
locateAttributeConversionInfo(java.lang.String path)
protected AttributeConversionInfo
locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)
protected java.lang.String
normalizeCompositePath(java.lang.String attributeName)
protected java.lang.String
normalizeCompositePathForLogging(java.lang.String attributeName)
void
startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
Called during binding to allow the PropertyHolder to inspect its discovered properties.java.lang.String
toString()
-
Methods inherited from class org.hibernate.cfg.AbstractPropertyHolder
buildExceptionFromInstantiationError, getContext, getJoinTable, getOverriddenColumn, getOverriddenForeignKey, getOverriddenJoinColumn, getOverriddenJoinTable, getPath, isInIdClass, makeAttributeConverterDescriptor, resolveAttributeConverterDescriptor, setCurrentProperty, setInIdClass, setParentProperty
-
-
-
-
Constructor Detail
-
ClassPropertyHolder
public ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, java.util.Map<java.lang.String,Join> joins, MetadataBuildingContext context, java.util.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, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
-
-
Method Detail
-
normalizeCompositePath
protected java.lang.String normalizeCompositePath(java.lang.String attributeName)
- Specified by:
normalizeCompositePath
in classAbstractPropertyHolder
-
normalizeCompositePathForLogging
protected java.lang.String normalizeCompositePathForLogging(java.lang.String attributeName)
- Specified by:
normalizeCompositePathForLogging
in classAbstractPropertyHolder
-
buildAttributeConversionInfoMap
protected java.util.Map<java.lang.String,AttributeConversionInfo> buildAttributeConversionInfoMap(org.hibernate.annotations.common.reflection.XClass entityXClass)
-
startingProperty
public void startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
Description copied from interface:PropertyHolder
Called during binding to allow the PropertyHolder to inspect its discovered properties. Mainly this is used in collecting attribute conversion declarations (via @Convert/@Converts).- Parameters:
property
- The property
-
locateAttributeConversionInfo
protected AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)
- Specified by:
locateAttributeConversionInfo
in classAbstractPropertyHolder
-
locateAttributeConversionInfo
protected AttributeConversionInfo locateAttributeConversionInfo(java.lang.String path)
- Specified by:
locateAttributeConversionInfo
in classAbstractPropertyHolder
-
getEntityName
public java.lang.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)
-
getClassName
public java.lang.String getClassName()
-
getEntityOwnerClassName
public java.lang.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()
Description copied from interface:PropertyHolder
Return true if this component is or is embedded in a @EmbeddedId
-
isWithinElementCollection
public boolean isWithinElementCollection()
Description copied from interface:PropertyHolder
Return true if this component is withing an @ElementCollection.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-