Package org.apache.bval.jsr.resolver
Class JPATraversableResolver
- java.lang.Object
-
- org.apache.bval.jsr.resolver.JPATraversableResolver
-
- All Implemented Interfaces:
jakarta.validation.TraversableResolver
,CachingRelevant
public class JPATraversableResolver extends Object implements jakarta.validation.TraversableResolver, CachingRelevant
- See Also:
TraversableResolver
-
-
Constructor Summary
Constructors Constructor Description JPATraversableResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCascadable(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType)
boolean
isReachable(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType)
boolean
needsCaching()
Learn whether the results of theTraversableResolver
should be cached.
-
-
-
Method Detail
-
isReachable
public boolean isReachable(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType)
- Specified by:
isReachable
in interfacejakarta.validation.TraversableResolver
-
isCascadable
public boolean isCascadable(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType)
- Specified by:
isCascadable
in interfacejakarta.validation.TraversableResolver
-
needsCaching
public boolean needsCaching()
Learn whether the results of theTraversableResolver
should be cached.- Specified by:
needsCaching
in interfaceCachingRelevant
- Returns:
- boolean
-
-