com.avaje.ebean.meta
Class MetaAutoFetchStatistic.NodeUsageStats

java.lang.Object
  extended by com.avaje.ebean.meta.MetaAutoFetchStatistic.NodeUsageStats
All Implemented Interfaces:
Serializable
Enclosing class:
MetaAutoFetchStatistic

public static class MetaAutoFetchStatistic.NodeUsageStats
extends Object
implements Serializable

Collects usages statistics for a given node in the object graph.

See Also:
Serialized Form

Constructor Summary
MetaAutoFetchStatistic.NodeUsageStats(String path, int profileCount, int profileUsedCount, String[] usedProperties)
           
 
Method Summary
 String getPath()
          Return the path.
 int getProfileCount()
          The number of profiled beans for this node.
 int getProfileUsedCount()
          The number of profiled beans that where actually used for this node.
 String[] getUsedProperties()
          The properties used at this node.
 Set<String> getUsedPropertiesSet()
          Return the properties as a Set rather than an Array.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaAutoFetchStatistic.NodeUsageStats

public MetaAutoFetchStatistic.NodeUsageStats(String path,
                                             int profileCount,
                                             int profileUsedCount,
                                             String[] usedProperties)
Method Detail

getPath

public String getPath()
Return the path. This is empty string for the origin and otherwise the path for the associated nodes.


getProfileCount

public int getProfileCount()
The number of profiled beans for this node.


getProfileUsedCount

public int getProfileUsedCount()
The number of profiled beans that where actually used for this node.

The difference between profiled and used could show uneven traversal of the object graph. UI paging through results means the traversal for the first x beans can be much higher than the last x beans.


getUsedProperties

public String[] getUsedProperties()
The properties used at this node.


getUsedPropertiesSet

public Set<String> getUsedPropertiesSet()
Return the properties as a Set rather than an Array.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.