Class PropertyBinder

java.lang.Object
org.hibernate.boot.model.internal.PropertyBinder

public class PropertyBinder extends Object
A stateful binder responsible for creating Property objects.
  • Constructor Details

    • PropertyBinder

      public PropertyBinder()
  • Method Details

    • setReferencedEntityName

      public void setReferencedEntityName(String referencedEntityName)
    • setEmbedded

      public void setEmbedded(boolean embedded)
    • setEntityBinder

      public void setEntityBinder(EntityBinder entityBinder)
    • setInsertable

      public void setInsertable(boolean insertable)
    • setUpdatable

      public void setUpdatable(boolean updatable)
    • setName

      public void setName(String name)
    • setReturnedClassName

      public void setReturnedClassName(String returnedClassName)
    • setLazy

      public void setLazy(boolean lazy)
    • setLazyGroup

      public void setLazyGroup(String lazyGroup)
    • setAccessType

      public void setAccessType(AccessType accessType)
    • setColumns

      public void setColumns(AnnotatedColumns columns)
    • setHolder

      public void setHolder(PropertyHolder holder)
    • setValue

      public void setValue(Value value)
    • setComponentElement

      public void setComponentElement(Component componentElement)
    • setCascade

      public void setCascade(String cascadeStrategy)
    • setBuildingContext

      public void setBuildingContext(MetadataBuildingContext buildingContext)
    • setDeclaringClass

      public void setDeclaringClass(org.hibernate.annotations.common.reflection.XClass declaringClass)
    • setProperty

      public void setProperty(org.hibernate.annotations.common.reflection.XProperty property)
    • setReturnedClass

      public void setReturnedClass(org.hibernate.annotations.common.reflection.XClass returnedClass)
    • getBasicValueBinder

      public BasicValueBinder getBasicValueBinder()
    • getValue

      public Value getValue()
    • setId

      public void setId(boolean id)
    • isId

      public boolean isId()
    • setInheritanceStatePerClass

      public void setInheritanceStatePerClass(Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
    • makePropertyAndBind

      public Property makePropertyAndBind()
    • makePropertyValueAndBind

      public Property makePropertyValueAndBind()
    • setToMany

      public void setToMany(boolean toMany)
    • makeProperty

      public Property makeProperty()
    • processElementAnnotations

      public static void processElementAnnotations(PropertyHolder propertyHolder, Nullability nullability, PropertyData inferredData, Map<String,IdentifierGeneratorDefinition> classGenerators, EntityBinder entityBinder, boolean isIdentifierMapper, boolean isComponentEmbedded, boolean inSecondPass, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass) throws MappingException
      Process annotation of a particular property or field.
      Throws:
      MappingException
    • isOptional

      public static boolean isOptional(org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder propertyHolder)
      Should this property be considered optional, taking into account whether it is primitive?