public class ValidationUtils extends Object
| Constructor and Description |
|---|
ValidationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isConstraintViolationException(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(Exception e)
e - exception to checkCopyright © 2006–2022 Apache Software Foundation. All rights reserved.