|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.persistence.validation.ValidationUtils
public class ValidationUtils
Validation helper routines and wrappers to remove runtime dependencies on the Bean Valdiation APIs or a implementation. Note: This class should have no direct dependency on the javax.validation packages, which should only occur in the ValidatorImpl class.
Constructor Summary | |
---|---|
ValidationUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationUtils()
Method Detail |
---|
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 check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |