Class PropertyBinder
java.lang.Object
org.hibernate.boot.model.internal.PropertyBinder
A stateful binder responsible for creating
Property
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
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?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
setComponentElement
(Component componentElement) 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
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
-
Constructor Details
-
PropertyBinder
public PropertyBinder()
-
-
Method Details
-
setReferencedEntityName
-
setEmbedded
public void setEmbedded(boolean embedded) -
setEntityBinder
-
setInsertable
public void setInsertable(boolean insertable) -
setUpdatable
public void setUpdatable(boolean updatable) -
setName
-
setReturnedClassName
-
setLazy
public void setLazy(boolean lazy) -
setLazyGroup
-
setAccessType
-
setColumns
-
setHolder
-
setValue
-
setComponentElement
-
setCascade
-
setBuildingContext
-
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
-
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
-
makePropertyValueAndBind
-
setToMany
public void setToMany(boolean toMany) -
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, throws MappingExceptionInheritanceState> inheritanceStatePerClass) 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?
-