org.datanucleus.metadata
Class FetchPlanMetaData

java.lang.Object
  extended by org.datanucleus.metadata.MetaData
      extended by org.datanucleus.metadata.FetchPlanMetaData
All Implemented Interfaces:
java.io.Serializable

public class FetchPlanMetaData
extends MetaData

FetchPlan defined in MetaData.

Since:
1.1
Version:
$Revision: 1.12 $
See Also:
Serialized Form

Field Summary
protected  java.util.List fetchGroups
          Series of Fetch Groups used in this FetchPlan.
protected  int fetchSize
          Fetch Size for use when querying using this FetchPlan.
protected  int maxFetchDepth
          Max fetch depth for this FetchPlan.
 
Fields inherited from class org.datanucleus.metadata.MetaData
extensions, LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME, VENDOR_NAME_OLD
 
Constructor Summary
FetchPlanMetaData(MetaData parent, java.lang.String name, java.lang.String depth, java.lang.String size)
          Constructor.
 
Method Summary
 void addFetchGroup(FetchGroupMetaData fgmd)
          Add a new FetchGroupMetaData
 FetchGroupMetaData[] getFetchGroupMetaData()
          Accessor for fetchGroupMetaData
 int getFetchSize()
          Accessor for the fetch size.
 int getMaxFetchDepth()
          Accessor for the maximum fetch depth.
 java.lang.String getName()
          Accessor for name
 java.lang.String toString(java.lang.String prefix, java.lang.String indent)
          Returns a string representation of the object.
 
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtension, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setInitialised, setParent, setPopulated, setUsed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

maxFetchDepth

protected int maxFetchDepth
Max fetch depth for this FetchPlan.


fetchSize

protected int fetchSize
Fetch Size for use when querying using this FetchPlan.


fetchGroups

protected java.util.List fetchGroups
Series of Fetch Groups used in this FetchPlan. Only used during construction.

Constructor Detail

FetchPlanMetaData

public FetchPlanMetaData(MetaData parent,
                         java.lang.String name,
                         java.lang.String depth,
                         java.lang.String size)
Constructor.

Parameters:
parent - The parent MetaData
name - Name of fetch plan
depth - Max fetch depth
size - Fetch size for this fetch plan
Method Detail

getName

public final java.lang.String getName()
Accessor for name

Returns:
Returns the name.

getMaxFetchDepth

public final int getMaxFetchDepth()
Accessor for the maximum fetch depth.

Returns:
Returns the max fetch depth

getFetchSize

public final int getFetchSize()
Accessor for the fetch size.

Returns:
Returns the fetch size

getFetchGroupMetaData

public final FetchGroupMetaData[] getFetchGroupMetaData()
Accessor for fetchGroupMetaData

Returns:
Returns the fetchGroupMetaData.

addFetchGroup

public void addFetchGroup(FetchGroupMetaData fgmd)
Add a new FetchGroupMetaData

Parameters:
fgmd - the fetch group

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String indent)
Returns a string representation of the object. This can be used as part of a facility to output a MetaData file.

Overrides:
toString in class MetaData
Parameters:
prefix - prefix string
indent - indent string
Returns:
a string representation of the object.


Copyright © 2009. All Rights Reserved.