1 package ejava.examples.webtier.dao; 2 3 import java.util.List; 4 import java.util.Map; 5 6 import ejava.examples.webtier.bo.Student; 7 8 public interface StudentDAO { 9 public Student get(long id) throws StudentDAOException; 10 public Student create(Student student) throws StudentDAOException; 11 public Student update(Student student) throws StudentDAOException; 12 public Student remove(Student student) throws StudentDAOException; 13 public List<Student> find(int index, int count) throws StudentDAOException; 14 public List<Student> find(String queryName, int index, int count) 15 throws StudentDAOException; 16 public List<Student> find( 17 String queryName, Map<String,Object> params, int index, int count) 18 throws StudentDAOException; 19 }