类 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- 作者:
- Gavin King
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classNullability.NullabilityCheckType
-
构造器概要
构造器 构造器 说明 Nullability(SharedSessionContractImplementor session)Constructs a Nullability
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcheckNullability(Object[] values, EntityPersister persister, boolean isUpdate)Check nullability of the class persister propertiesvoidcheckNullability(Object[] values, EntityPersister persister, Nullability.NullabilityCheckType checkType)
-
-
-
构造器详细资料
-
Nullability
public Nullability(SharedSessionContractImplementor session)
Constructs a Nullability- 参数:
session- The session
-
-
方法详细资料
-
checkNullability
public void checkNullability(Object[] values, EntityPersister persister, boolean isUpdate)
Check nullability of the class persister properties- 参数:
values- entity propertiespersister- class persisterisUpdate- whether it is intended to be updated or saved- 抛出:
PropertyValueException- Break the nullability of one propertyHibernateException- error while getting Component values
-
checkNullability
public void checkNullability(Object[] values, EntityPersister persister, Nullability.NullabilityCheckType checkType)
-
-