1 package ejava.examples.asyncmarket.dao; 2 3 import java.util.List; 4 import java.util.Map; 5 6 import ejava.examples.asyncmarket.bo.Person; 7 8 public interface PersonDAO { 9 Person getPerson(long personId); 10 Person getPersonByUserId(String userId); 11 Person createPerson(Person person); 12 void removePerson(Person person); 13 List<Person> getPeople(int index, int count); 14 List<Person> getPeople( 15 String queryString, Map<String, Object> params, int index, int count); 16 }