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 BasicValueBinder
getBasicValueBinder()
Value
getValue()
boolean
isId()
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?Property
makeProperty()
Property
makePropertyAndBind()
Property
makePropertyValueAndBind()
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)
Process annotation of a particular property or field.void
setAccessType(AccessType accessType)
void
setBuildingContext(MetadataBuildingContext buildingContext)
void
setCascade(String cascadeStrategy)
void
setColumns(AnnotatedColumns columns)
void
setDeclaringClass(org.hibernate.annotations.common.reflection.XClass declaringClass)
void
setEmbedded(boolean embedded)
void
setEntityBinder(EntityBinder entityBinder)
void
setHolder(PropertyHolder holder)
void
setId(boolean id)
void
setInheritanceStatePerClass(Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
void
setInsertable(boolean insertable)
void
setLazy(boolean lazy)
void
setLazyGroup(String lazyGroup)
void
setName(String name)
void
setProperty(org.hibernate.annotations.common.reflection.XProperty property)
void
setReferencedEntityName(String referencedEntityName)
void
setReturnedClass(org.hibernate.annotations.common.reflection.XClass returnedClass)
void
setReturnedClassName(String returnedClassName)
void
setToMany(boolean toMany)
void
setUpdatable(boolean updatable)
void
setValue(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)
-
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?
-
-