Class AbstractPropertyHolder
java.lang.Object
org.hibernate.boot.model.internal.AbstractPropertyHolder
- All Implemented Interfaces:
PropertyHolder
- Direct Known Subclasses:
ClassPropertyHolder
,CollectionPropertyHolder
,ComponentPropertyHolder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected IllegalStateException
protected MetadataBuildingContext
Get the mappingsgetJoinTable
(org.hibernate.models.spi.MemberDetails attributeMember) Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothingColumn[]
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()
protected org.hibernate.models.spi.SourceModelBuildingContext
boolean
protected abstract AttributeConversionInfo
protected abstract AttributeConversionInfo
locateAttributeConversionInfo
(org.hibernate.models.spi.MemberDetails attributeMember) protected ConverterDescriptor
protected abstract String
normalizeCompositePath
(String attributeName) protected abstract String
normalizeCompositePathForLogging
(String attributeName) resolveAttributeConverterDescriptor
(org.hibernate.models.spi.MemberDetails attributeMember) Determine the AttributeConverter to use for the given property.protected void
setCurrentProperty
(org.hibernate.models.spi.MemberDetails attributeMember) Set the property to be processed.void
setInIdClass
(Boolean isInIdClass) void
setParentProperty
(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.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
protected abstract AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.models.spi.MemberDetails attributeMember) -
locateAttributeConversionInfo
-
resolveAttributeConverterDescriptor
public ConverterDescriptor resolveAttributeConverterDescriptor(org.hibernate.models.spi.MemberDetails attributeMember) Description copied from interface:PropertyHolder
Determine the AttributeConverter to use for the given property.- Specified by:
resolveAttributeConverterDescriptor
in interfacePropertyHolder
- Returns:
- The ConverterDescriptor
-
buildExceptionFromInstantiationError
protected IllegalStateException buildExceptionFromInstantiationError(AttributeConversionInfo info, Exception e) -
makeAttributeConverterDescriptor
-
isInIdClass
public boolean isInIdClass()- Specified by:
isInIdClass
in interfacePropertyHolder
-
setInIdClass
- Specified by:
setInIdClass
in interfacePropertyHolder
-
getPath
- Specified by:
getPath
in interfacePropertyHolder
-
getContext
Get the mappings- Returns:
- The mappings
-
getSourceModelContext
protected org.hibernate.models.spi.SourceModelBuildingContext getSourceModelContext() -
setCurrentProperty
protected void setCurrentProperty(org.hibernate.models.spi.MemberDetails attributeMember) Set the property to be processed. property can be null- Parameters:
attributeMember
- 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:
getOverriddenColumn
in interfacePropertyHolder
-
getOverriddenColumnTransformer
- Specified by:
getOverriddenColumnTransformer
in 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:
getOverriddenJoinColumn
in interfacePropertyHolder
-
getOverriddenForeignKey
Description copied from interface:PropertyHolder
return null if hte foreign key is not overridden, or the foreign key if true- Specified by:
getOverriddenForeignKey
in interfacePropertyHolder
-
getJoinTable
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:
getJoinTable
in 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:
setParentProperty
in interfacePropertyHolder
-