类 BeanValidationIntegrator
- java.lang.Object
-
- org.hibernate.cfg.beanvalidation.BeanValidationIntegrator
-
- 所有已实现的接口:
Integrator
public class BeanValidationIntegrator extends Object implements Integrator
- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringAPPLY_CONSTRAINTSstatic StringBV_CHECK_CLASSstatic StringMODE_PROPERTY
-
构造器概要
构造器 构造器 说明 BeanValidationIntegrator()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddisintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)Tongue-in-cheek name for a shutdown callback.voidintegrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)Perform integration.static voidvalidateFactory(Object object)Used to validate the type of an explicitly passed ValidatorFactory instance
-
-
-
方法详细资料
-
validateFactory
public static void validateFactory(Object object)
Used to validate the type of an explicitly passed ValidatorFactory instance- 参数:
object- The supposed ValidatorFactory instance
-
integrate
public void integrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
从接口复制的说明:IntegratorPerform integration.- 指定者:
integrate在接口中Integrator- 参数:
metadata- The "compiled" representation of the mapping informationsessionFactory- The session factory being createdserviceRegistry- The session factory's service registry
-
disintegrate
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
从接口复制的说明:IntegratorTongue-in-cheek name for a shutdown callback.- 指定者:
disintegrate在接口中Integrator- 参数:
sessionFactory- The session factory being closed.serviceRegistry- That session factory's service registry
-
-