Package org.hibernate.cfg
Class AbstractPropertyHolder
- java.lang.Object
-
- org.hibernate.cfg.AbstractPropertyHolder
-
- All Implemented Interfaces:
PropertyHolder
- Direct Known Subclasses:
ClassPropertyHolder,CollectionPropertyHolder,ComponentPropertyHolder
public abstract class AbstractPropertyHolder extends java.lang.Object implements PropertyHolder
No idea.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractPropertyHolderparent
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.IllegalStateExceptionbuildExceptionFromInstantiationError(AttributeConversionInfo info, java.lang.Exception e)protected MetadataBuildingContextgetContext()Get the mappingsJoinTablegetJoinTable(org.hibernate.annotations.common.reflection.XProperty property)Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.Column[]getOverriddenColumn(java.lang.String propertyName)Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.ForeignKeygetOverriddenForeignKey(java.lang.String propertyName)return null if hte foreign key is not overridden, or the foreign key if trueJoinColumn[]getOverriddenJoinColumn(java.lang.String propertyName)Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.JoinTablegetOverriddenJoinTable(java.lang.String propertyName)Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.java.lang.StringgetPath()booleanisInIdClass()protected abstract AttributeConversionInfolocateAttributeConversionInfo(java.lang.String path)protected abstract AttributeConversionInfolocateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)protected ConverterDescriptormakeAttributeConverterDescriptor(AttributeConversionInfo conversion)protected abstract java.lang.StringnormalizeCompositePath(java.lang.String attributeName)protected abstract java.lang.StringnormalizeCompositePathForLogging(java.lang.String attributeName)ConverterDescriptorresolveAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty property)Determine the AttributeConverter to use for the given property.protected voidsetCurrentProperty(org.hibernate.annotations.common.reflection.XProperty property)Set the property to be processed.voidsetInIdClass(java.lang.Boolean isInIdClass)voidsetParentProperty(java.lang.String parentProperty)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.cfg.PropertyHolder
addJoin, addProperty, addProperty, getClassName, getEntityName, getEntityOwnerClassName, getIdentifier, getPersistentClass, getTable, isComponent, isEntity, isOrWithinEmbeddedId, isWithinElementCollection, startingProperty
-
-
-
-
Field Detail
-
parent
protected AbstractPropertyHolder parent
-
-
Method Detail
-
normalizeCompositePathForLogging
protected abstract java.lang.String normalizeCompositePathForLogging(java.lang.String attributeName)
-
normalizeCompositePath
protected abstract java.lang.String normalizeCompositePath(java.lang.String attributeName)
-
locateAttributeConversionInfo
protected abstract AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)
-
locateAttributeConversionInfo
protected abstract AttributeConversionInfo locateAttributeConversionInfo(java.lang.String path)
-
resolveAttributeConverterDescriptor
public ConverterDescriptor resolveAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty property)
Description copied from interface:PropertyHolderDetermine the AttributeConverter to use for the given property.- Specified by:
resolveAttributeConverterDescriptorin interfacePropertyHolder- Returns:
- The ConverterDescriptor
-
buildExceptionFromInstantiationError
protected java.lang.IllegalStateException buildExceptionFromInstantiationError(AttributeConversionInfo info, java.lang.Exception e)
-
makeAttributeConverterDescriptor
protected ConverterDescriptor makeAttributeConverterDescriptor(AttributeConversionInfo conversion)
-
isInIdClass
public boolean isInIdClass()
- Specified by:
isInIdClassin interfacePropertyHolder
-
setInIdClass
public void setInIdClass(java.lang.Boolean isInIdClass)
- Specified by:
setInIdClassin interfacePropertyHolder
-
getPath
public java.lang.String getPath()
- Specified by:
getPathin interfacePropertyHolder
-
getContext
protected MetadataBuildingContext getContext()
Get the mappings- Returns:
- The mappings
-
setCurrentProperty
protected void setCurrentProperty(org.hibernate.annotations.common.reflection.XProperty property)
Set the property to be processed. property can be null- Parameters:
property- The property
-
getOverriddenColumn
public Column[] getOverriddenColumn(java.lang.String propertyName)
Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.- Specified by:
getOverriddenColumnin interfacePropertyHolder
-
getOverriddenJoinColumn
public JoinColumn[] getOverriddenJoinColumn(java.lang.String propertyName)
Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.- Specified by:
getOverriddenJoinColumnin interfacePropertyHolder
-
getOverriddenForeignKey
public ForeignKey getOverriddenForeignKey(java.lang.String propertyName)
Description copied from interface:PropertyHolderreturn null if hte foreign key is not overridden, or the foreign key if true- Specified by:
getOverriddenForeignKeyin interfacePropertyHolder
-
getJoinTable
public JoinTable getJoinTable(org.hibernate.annotations.common.reflection.XProperty property)
Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.- Specified by:
getJoinTablein interfacePropertyHolder
-
getOverriddenJoinTable
public JoinTable getOverriddenJoinTable(java.lang.String propertyName)
Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.
-
setParentProperty
public void setParentProperty(java.lang.String parentProperty)
- Specified by:
setParentPropertyin interfacePropertyHolder
-
-