Class AbstractPropertyHolder

java.lang.Object
org.hibernate.boot.model.internal.AbstractPropertyHolder
All Implemented Interfaces:
PropertyHolder
Direct Known Subclasses:
ClassPropertyHolder, CollectionPropertyHolder, ComponentPropertyHolder

public abstract class AbstractPropertyHolder extends Object implements PropertyHolder
  • Field Details

  • Method Details

    • normalizeCompositePathForLogging

      protected abstract String normalizeCompositePathForLogging(String attributeName)
    • normalizeCompositePath

      protected abstract String normalizeCompositePath(String attributeName)
    • locateAttributeConversionInfo

      protected abstract AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.models.spi.MemberDetails attributeMember)
    • locateAttributeConversionInfo

      protected abstract AttributeConversionInfo locateAttributeConversionInfo(String path)
    • 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 interface PropertyHolder
      Returns:
      The ConverterDescriptor
    • buildExceptionFromInstantiationError

      protected IllegalStateException buildExceptionFromInstantiationError(AttributeConversionInfo info, Exception e)
    • makeAttributeConverterDescriptor

      protected ConverterDescriptor makeAttributeConverterDescriptor(AttributeConversionInfo conversion)
    • isInIdClass

      public boolean isInIdClass()
      Specified by:
      isInIdClass in interface PropertyHolder
    • setInIdClass

      public void setInIdClass(Boolean isInIdClass)
      Specified by:
      setInIdClass in interface PropertyHolder
    • getPath

      public String getPath()
      Specified by:
      getPath in interface PropertyHolder
    • getContext

      protected MetadataBuildingContext 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

      public Column[] getOverriddenColumn(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:
      getOverriddenColumn in interface PropertyHolder
    • getOverriddenColumnTransformer

      public ColumnTransformer getOverriddenColumnTransformer(String logicalColumnName)
      Specified by:
      getOverriddenColumnTransformer in interface PropertyHolder
    • getOverriddenJoinColumn

      public JoinColumn[] getOverriddenJoinColumn(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:
      getOverriddenJoinColumn in interface PropertyHolder
    • getOverriddenForeignKey

      public ForeignKey getOverriddenForeignKey(String propertyName)
      Description copied from interface: PropertyHolder
      return null if hte foreign key is not overridden, or the foreign key if true
      Specified by:
      getOverriddenForeignKey in interface PropertyHolder
    • getJoinTable

      public JoinTable getJoinTable(org.hibernate.models.spi.MemberDetails attributeMember)
      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:
      getJoinTable in interface PropertyHolder
    • getOverriddenJoinTable

      public JoinTable getOverriddenJoinTable(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(String parentProperty)
      Specified by:
      setParentProperty in interface PropertyHolder