public class BeanValidationHandler extends Object
Constructor and Description |
---|
BeanValidationHandler(ExecutionContext ec,
javax.validation.ValidatorFactory factory)
Constructor for a validation handler.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
preDelete(Object pc) |
void |
prePersist(Object pc) |
void |
preStore(Object pc) |
void |
validate(Object pc,
String callbackName,
Class<?>[] groups)
Validate the constraints of an object
|
public BeanValidationHandler(ExecutionContext ec, javax.validation.ValidatorFactory factory)
ec
- ExecutionContext that we are persisting infactory
- Validation factorypublic void close()
public void validate(Object pc, String callbackName, Class<?>[] groups)
pc
- the objectcallbackName
- Name of the callbackgroups
- the validation groupspublic void preDelete(Object pc)
public void preStore(Object pc)
public void prePersist(Object pc)
Copyright © 2020. All rights reserved.