org.objectweb.speedo.mim.lib
Class SpeedoFetchPlan

java.lang.Object
  extended byorg.objectweb.speedo.mim.lib.SpeedoFetchPlan
All Implemented Interfaces:
FetchPlan

public class SpeedoFetchPlan
extends java.lang.Object
implements FetchPlan

Author:
Y.Bersihand

Field Summary
 
Fields inherited from interface org.objectweb.speedo.mim.api.FetchPlan
ALL, DEFAULT, NONE, VALUES
 
Constructor Summary
SpeedoFetchPlan()
           
SpeedoFetchPlan(java.lang.String fgName)
           
 
Method Summary
 FetchPlan addGroup(java.lang.String fetchGroupName)
          Add a group into the fetch plan.
 int getFetchSize()
          Return the fetch size, or 0 if not set.
 java.util.Collection getGroups()
          Return the names of all active fetch groups.
 FetchPlan removeGroup(java.lang.String fetchGroupName)
          Remove a group from the fetch plan.
 FetchPlan resetGroups()
          Clear the list of groups and reset to the default group.
 FetchPlan setFetchSize(int fetchSize)
          Set the fetch size for large result set support.
 FetchPlan setGroups(java.util.Collection fetchGroupNames)
          Set a collection of groups.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpeedoFetchPlan

public SpeedoFetchPlan()

SpeedoFetchPlan

public SpeedoFetchPlan(java.lang.String fgName)
Method Detail

addGroup

public FetchPlan addGroup(java.lang.String fetchGroupName)
Add a group into the fetch plan.

Specified by:
addGroup in interface FetchPlan

removeGroup

public FetchPlan removeGroup(java.lang.String fetchGroupName)
Remove a group from the fetch plan.

Specified by:
removeGroup in interface FetchPlan

resetGroups

public FetchPlan resetGroups()
Clear the list of groups and reset to the default group.

Specified by:
resetGroups in interface FetchPlan

getGroups

public java.util.Collection getGroups()
Description copied from interface: FetchPlan
Return the names of all active fetch groups.

Specified by:
getGroups in interface FetchPlan

setGroups

public FetchPlan setGroups(java.util.Collection fetchGroupNames)
Description copied from interface: FetchPlan
Set a collection of groups.

Specified by:
setGroups in interface FetchPlan

setFetchSize

public FetchPlan setFetchSize(int fetchSize)
Description copied from interface: FetchPlan
Set the fetch size for large result set support. Use 0 to unset.

Specified by:
setFetchSize in interface FetchPlan

getFetchSize

public int getFetchSize()
Description copied from interface: FetchPlan
Return the fetch size, or 0 if not set.

Specified by:
getFetchSize in interface FetchPlan