View Javadoc
1   package ejava.examples.jndidemo.dao;
2   
3   import java.util.List;
4   
5   import ejava.examples.jndidemo.bo.Task;
6   
7   /**
8    * This interface represents a basic DAO type that manages tasks.
9    */
10  public interface SchedulerDAO {
11  	void create(Task task);
12  	Task get(int id);
13  	Task update(Task task);
14  	void delete(Task task);
15  	Task findByName(String name);
16  	List<Task> getTasks(int offset, int limit);
17  }