org.rhq.helpers.perftest.support.jpa
Class EagerMappingInclusionResolver

java.lang.Object
  extended by org.rhq.helpers.perftest.support.jpa.EagerMappingInclusionResolver
All Implemented Interfaces:
DependencyInclusionResolver

public class EagerMappingInclusionResolver
extends Object
implements DependencyInclusionResolver

A DependencyInclusionResolver implementation that consideres an edge valid if the JPA defines the fetch type as FetchType.EAGER.

Note that this is just an example implementation of the interface with no practical use because of the lack of flexibility of this simple rule.

Author:
Lukas Krejci

Constructor Summary
EagerMappingInclusionResolver()
           
 
Method Summary
 boolean isValid(Edge edge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EagerMappingInclusionResolver

public EagerMappingInclusionResolver()
Method Detail

isValid

public boolean isValid(Edge edge)
Specified by:
isValid in interface DependencyInclusionResolver
Returns:
true if the edge should be traversed, false otherwise


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.