org.apache.openjpa.persistence.validation
Class TraversableResolverImpl

java.lang.Object
  extended by org.apache.openjpa.persistence.validation.TraversableResolverImpl
All Implemented Interfaces:
TraversableResolver

public class TraversableResolverImpl
extends Object
implements TraversableResolver

OpenJPA optimized TraversableResolver Default implementation/behavior asks all discovered providers - javax.persistence.Persistence.getPersistenceUtil().isLoaded( traversableObject, traversableProperty.getName());

See Also:
TraversableResolver

Constructor Summary
TraversableResolverImpl()
           
 
Method Summary
 boolean isCascadable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
           
 boolean isReachable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraversableResolverImpl

public TraversableResolverImpl()
Method Detail

isReachable

public boolean isReachable(Object traversableObject,
                           Path.Node traversableProperty,
                           Class<?> rootBeanType,
                           Path pathToTraversableObject,
                           ElementType elementType)
Specified by:
isReachable in interface TraversableResolver

isCascadable

public boolean isCascadable(Object traversableObject,
                            Path.Node traversableProperty,
                            Class<?> rootBeanType,
                            Path pathToTraversableObject,
                            ElementType elementType)
Specified by:
isCascadable in interface TraversableResolver


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.