context.arch.storage
Class Retrieval

java.lang.Object
  extended bycontext.arch.storage.Retrieval

public class Retrieval
extends java.lang.Object

This class is a container for a data retrieval.


Field Summary
static java.lang.String RETRIEVAL_CONDITIONS
          Tag for retrieval
 
Constructor Summary
Retrieval()
          Empty constructor
Retrieval(AttributeFunctions attributes, context.arch.storage.Conditions conditions)
          Constructor that sets attribute list and conditions
Retrieval(DataObject retrieval)
          Constructor that takes a DataObject as a parameter.
 
Method Summary
 AttributeFunctions getAttributeFunctions()
          Returns the list of AttributeFunctions to retrieve.
 context.arch.storage.Conditions getConditions()
          Returns the Conditions object used for retrieval.
 void setAttributeFunctions(AttributeFunctions attributes)
          Sets the list of attributes to retrieve.
 void setConditions(context.arch.storage.Conditions conditions)
          Sets the Conditions object for retrieval.
 DataObject toDataObject()
          Converts to a DataObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RETRIEVAL_CONDITIONS

public static final java.lang.String RETRIEVAL_CONDITIONS
Tag for retrieval

See Also:
Constant Field Values
Constructor Detail

Retrieval

public Retrieval()
Empty constructor


Retrieval

public Retrieval(AttributeFunctions attributes,
                 context.arch.storage.Conditions conditions)
Constructor that sets attribute list and conditions

Parameters:
attributes - List of AttributeFunctions to retrieve
conditions - Conditions object with retrieval conditions

Retrieval

public Retrieval(DataObject retrieval)
Constructor that takes a DataObject as a parameter. The DataObject should contain the tag. It stores the encoded data.

Parameters:
retrieval - DataObject that contains info for retrieval
Method Detail

toDataObject

public DataObject toDataObject()
Converts to a DataObject

Returns:
Retrieval object converted to a DataObject

setConditions

public void setConditions(context.arch.storage.Conditions conditions)
Sets the Conditions object for retrieval.

Parameters:
conditions - Conditions object for retrieval

setAttributeFunctions

public void setAttributeFunctions(AttributeFunctions attributes)
Sets the list of attributes to retrieve.

Parameters:
attributes - List of attributeFunctions to retrieve

getConditions

public context.arch.storage.Conditions getConditions()
Returns the Conditions object used for retrieval.

Returns:
Conditions object used for retrieval

getAttributeFunctions

public AttributeFunctions getAttributeFunctions()
Returns the list of AttributeFunctions to retrieve.

Returns:
List of AttributeFunctions to retrieve