Package org.hibernate.engine.internal
Class Nullability
java.lang.Object
org.hibernate.engine.internal.Nullability
Implements the algorithm for validating property values for illegal null values
- Author:
- Gavin King
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a Nullability -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckNullability(Object[] values, EntityPersister persister, boolean isUpdate) Check nullability of the class persister propertiesvoidcheckNullability(Object[] values, EntityPersister persister, Nullability.NullabilityCheckType checkType)
-
Constructor Details
-
Method Details
-
checkNullability
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)
-