Package org.datanucleus
Class BeanValidationHandler.PersistenceTraversalResolver
- java.lang.Object
-
- org.datanucleus.BeanValidationHandler.PersistenceTraversalResolver
-
- All Implemented Interfaces:
javax.validation.TraversableResolver
- Enclosing class:
- BeanValidationHandler
static class BeanValidationHandler.PersistenceTraversalResolver extends java.lang.Object implements javax.validation.TraversableResolverResolver for traversal of validation.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ExecutionContextec
-
Constructor Summary
Constructors Constructor Description PersistenceTraversalResolver(ExecutionContext ec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCascadable(java.lang.Object traversableObject, javax.validation.Path.Node traversableProperty, java.lang.Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, java.lang.annotation.ElementType elementType)Determine if the Bean Validation provider is allowed to cascade validation on the bean instance returned by the property value marked as@Valid.booleanisReachable(java.lang.Object traversableObject, javax.validation.Path.Node traversableProperty, java.lang.Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, java.lang.annotation.ElementType elementType)Determine if the Bean Validation provider is allowed to reach the property state
-
-
-
Field Detail
-
ec
ExecutionContext ec
-
-
Constructor Detail
-
PersistenceTraversalResolver
PersistenceTraversalResolver(ExecutionContext ec)
-
-
Method Detail
-
isCascadable
public boolean isCascadable(java.lang.Object traversableObject, javax.validation.Path.Node traversableProperty, java.lang.Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, java.lang.annotation.ElementType elementType)Determine if the Bean Validation provider is allowed to cascade validation on the bean instance returned by the property value marked as@Valid. Note that this method is called only ifisReachablereturns true for the same set of arguments and if the property is marked as@Valid- Specified by:
isCascadablein interfacejavax.validation.TraversableResolver- Parameters:
traversableObject- object hostingtraversablePropertyor null ifvalidateValueis calledtraversableProperty- the traversable property.rootBeanType- type of the root object passed to the Validator.pathToTraversableObject- path from the root object totraversableObject(using the path specification defined by Bean Validator).elementType- eitherFIELDorMETHOD.- Returns:
trueif the Bean Validation provider is allowed to cascade validation,falseotherwise.
-
isReachable
public boolean isReachable(java.lang.Object traversableObject, javax.validation.Path.Node traversableProperty, java.lang.Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, java.lang.annotation.ElementType elementType)Determine if the Bean Validation provider is allowed to reach the property state- Specified by:
isReachablein interfacejavax.validation.TraversableResolver- Parameters:
traversableObject- object hostingtraversablePropertyor null ifvalidateValueis calledtraversableProperty- the traversable property.rootBeanType- type of the root object passed to the Validator.pathToTraversableObject- path from the root object totraversableObject(using the path specification defined by Bean Validator).elementType- eitherFIELDorMETHOD.- Returns:
trueif the Bean Validation provider is allowed to reach the property state,falseotherwise.
-
-