Package org.hibernate.engine.internal
Class Nullability
- java.lang.Object
-
- org.hibernate.engine.internal.Nullability
-
public final class Nullability extends Object
Implements the algorithm for validating property values for illegal null values
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNullability.NullabilityCheckType
-
Constructor Summary
Constructors Constructor Description Nullability(SharedSessionContractImplementor session)Constructs a Nullability
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckNullability(Object[] values, EntityPersister persister, boolean isUpdate)Check nullability of the class persister propertiesvoidcheckNullability(Object[] values, EntityPersister persister, Nullability.NullabilityCheckType checkType)
-
-
-
Constructor Detail
-
Nullability
public Nullability(SharedSessionContractImplementor session)
Constructs a Nullability- Parameters:
session- The session
-
-
Method Detail
-
checkNullability
public void checkNullability(Object[] values, EntityPersister persister, boolean isUpdate)
Check nullability of the class persister properties- Parameters:
values- entity propertiespersister- class persisterisUpdate- whether it is intended to be updated or saved- Throws:
PropertyValueException- Break the nullability of one propertyHibernateException- error while getting Component values
-
checkNullability
public void checkNullability(Object[] values, EntityPersister persister, Nullability.NullabilityCheckType checkType)
-
-