Class AbstractPropertyHolder
java.lang.Object
org.hibernate.boot.model.internal.AbstractPropertyHolder
- All Implemented Interfaces:
PropertyHolder
- Direct Known Subclasses:
ClassPropertyHolder,CollectionPropertyHolder,ComponentPropertyHolder
- Author:
- Emmanuel Bernard
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected IllegalStateExceptionprotected MetadataBuildingContextGet the mappingsgetJoinTable(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(String propertyName) Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothinggetOverriddenColumnTransformer(String logicalColumnName) getOverriddenForeignKey(String propertyName) return null if hte foreign key is not overridden, or the foreign key if truegetOverriddenJoinColumn(String propertyName) Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothinggetOverriddenJoinTable(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.getPath()booleanprotected abstract AttributeConversionInfoprotected abstract AttributeConversionInfolocateAttributeConversionInfo(XProperty property) protected ConverterDescriptorprotected abstract StringnormalizeCompositePath(String attributeName) protected abstract StringnormalizeCompositePathForLogging(String attributeName) resolveAttributeConverterDescriptor(XProperty property) Determine the AttributeConverter to use for the given property.protected voidsetCurrentProperty(XProperty property) Set the property to be processed.voidsetInIdClass(Boolean isInIdClass) voidsetParentProperty(String parentProperty) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.model.internal.PropertyHolder
addJoin, addJoin, addProperty, addProperty, getClassName, getEntityName, getEntityOwnerClassName, getIdentifier, getPersistentClass, getTable, isComponent, isEntity, isOrWithinEmbeddedId, isWithinElementCollection, startingProperty
-
Field Details
-
parent
-
-
Method Details
-
normalizeCompositePathForLogging
-
normalizeCompositePath
-
locateAttributeConversionInfo
-
locateAttributeConversionInfo
-
resolveAttributeConverterDescriptor
Description copied from interface:PropertyHolderDetermine the AttributeConverter to use for the given property.- Specified by:
resolveAttributeConverterDescriptorin interfacePropertyHolder- Returns:
- The ConverterDescriptor
-
buildExceptionFromInstantiationError
protected IllegalStateException buildExceptionFromInstantiationError(AttributeConversionInfo info, Exception e) -
makeAttributeConverterDescriptor
-
isInIdClass
public boolean isInIdClass()- Specified by:
isInIdClassin interfacePropertyHolder
-
setInIdClass
- Specified by:
setInIdClassin interfacePropertyHolder
-
getPath
- Specified by:
getPathin interfacePropertyHolder
-
getContext
Get the mappings- Returns:
- The mappings
-
setCurrentProperty
Set the property to be processed. property can be null- Parameters:
property- The property
-
getOverriddenColumn
Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothingThese rules are here to support both JPA 2 and legacy overriding rules.
- Specified by:
getOverriddenColumnin interfacePropertyHolder
-
getOverriddenColumnTransformer
- Specified by:
getOverriddenColumnTransformerin interfacePropertyHolder
-
getOverriddenJoinColumn
Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothingThese rules are here to support both JPA 2 and legacy overriding rules.
- Specified by:
getOverriddenJoinColumnin interfacePropertyHolder
-
getOverriddenForeignKey
Description copied from interface:PropertyHolderreturn null if hte foreign key is not overridden, or the foreign key if true- Specified by:
getOverriddenForeignKeyin interfacePropertyHolder
-
getJoinTable
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
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
- Specified by:
setParentPropertyin interfacePropertyHolder
-