org.datanucleus.jpa.beanvalidation
Class BeanValidatorHandlerFactory

java.lang.Object
  extended by org.datanucleus.jpa.beanvalidation.BeanValidatorHandlerFactory

public class BeanValidatorHandlerFactory
extends java.lang.Object

Handles the integration to javax.validation. Implements only the methods preDelete, preStore, prePersist


Constructor Summary
BeanValidatorHandlerFactory()
           
 
Method Summary
static org.datanucleus.state.CallbackHandler newInstance(org.datanucleus.ObjectManager om)
          Creates an instance of BeanValidatorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanValidatorHandlerFactory

public BeanValidatorHandlerFactory()
Method Detail

newInstance

public static org.datanucleus.state.CallbackHandler newInstance(org.datanucleus.ObjectManager om)
Creates an instance of BeanValidatorHandler

Parameters:
om -
Returns:
null if validation mode is none or validation mode is auto and an error occurs.
Throws:
javax.persistence.PersistenceException - if an error occurred and validation mode is callback


Copyright © 2011. All Rights Reserved.