1 package ejava.examples.ejbsessionbank.dao;
2
3 import java.util.List;
4 import java.util.Map;
5
6 import ejava.examples.ejbsessionbank.bo.Account;
7 import ejava.examples.ejbsessionbank.bo.Owner;
8
9 public interface OwnerDAO {
10 String GET_OWNERS_QUERY = "getAccountOwners";
11
12 Owner getOwnerById(long id) throws DAOException;
13 List<Owner> getAccountOwners(Account account) throws DAOException;
14 Owner createOwner(Owner owner) throws DAOException;
15 Owner removeOwner(Owner owner) throws DAOException;
16 List<Owner> findOwners(String queryName, Map<String, Object> params,
17 int index, int count) throws DAOException;
18 }