public class ValidationUtils
extends java.lang.Object
| Constructor and Description |
|---|
ValidationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isConstraintViolationException(java.lang.Exception e)
Determines whether an exception is a constraint violation exception via
class name.
|
static boolean |
setupValidation(OpenJPAConfiguration conf)
Setup Validation support by determining if the javax.validation APIs
are available and then create a Validator if required by the
provided configuration.
|
public static boolean setupValidation(OpenJPAConfiguration conf)
conf - If - a Validator was required but could not be created.public static boolean isConstraintViolationException(java.lang.Exception e)
e - exception to checkCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.