Class PropertyBinder
- java.lang.Object
- org.hibernate.boot.model.internal.PropertyBinder
Constructor Summary
Constructors Constructor Description PropertyBinder()
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicValueBindergetBasicValueBinder()ValuegetValue()booleanisId()static booleanisOptional(org.hibernate.annotations.common.reflection.XProperty property,PropertyHolder propertyHolder)Should this property be considered optional, taking into account whether it is primitive?PropertymakeProperty()PropertymakePropertyAndBind()PropertymakePropertyValueAndBind()static voidprocessElementAnnotations(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)Process annotation of a particular property or field.voidsetAccessType(AccessType accessType)voidsetBuildingContext(MetadataBuildingContext buildingContext)voidsetCascade(String cascadeStrategy)voidsetColumns(AnnotatedColumns columns)voidsetComponentElement(Component componentElement)voidsetDeclaringClass(org.hibernate.annotations.common.reflection.XClass declaringClass)voidsetEmbedded(boolean embedded)voidsetEntityBinder(EntityBinder entityBinder)voidsetHolder(PropertyHolder holder)voidsetId(boolean id)voidsetInheritanceStatePerClass(Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)voidsetInsertable(boolean insertable)voidsetLazy(boolean lazy)voidsetLazyGroup(String lazyGroup)voidsetName(String name)voidsetProperty(org.hibernate.annotations.common.reflection.XProperty property)voidsetReferencedEntityName(String referencedEntityName)voidsetReturnedClass(org.hibernate.annotations.common.reflection.XClass returnedClass)voidsetReturnedClassName(String returnedClassName)voidsetToMany(boolean toMany)voidsetUpdatable(boolean updatable)voidsetValue(Value value)
Method Detail
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) throwsMappingException
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?