eteg.sinon.dao
Interface CollectorDAO

All Known Implementing Classes:
XMLCollectorDAO

public interface CollectorDAO

Interface that defines a DAO (Data Accesss Object) to store and retrieve Collector instances.

Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $
See Also:
Collector

Method Summary
 java.util.List findAll()
          Loads all available Collector instances in a java.util.List.
 Collector load(java.lang.String id)
          Loads the Collector instance with identifier id from persistent memory.
 void store(Collector collector)
          Stores collector in persistent memory.
 

Method Detail

store

void store(Collector collector)
           throws java.lang.Exception
Stores collector in persistent memory.

Parameters:
collector - a Collector instance.
Throws:
java.lang.Exception - if some error ocurrs.

load

Collector load(java.lang.String id)
               throws java.lang.Exception
Loads the Collector instance with identifier id from persistent memory.

Parameters:
id - a String containing the identifier of the Collector instance to be loaded.
Returns:
a Collector instance.
Throws:
java.lang.Exception - if some error ocurrs.

findAll

java.util.List findAll()
                       throws java.lang.Exception
Loads all available Collector instances in a java.util.List.

Returns:
a java.util.List instance.
Throws:
java.lang.Exception - if some error ocurrs.


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.