01: package org.springunit.framework.samples.jpetstore.dao;
02:
03: import java.util.List;
04:
05: import org.springframework.dao.DataAccessException;
06: import org.springunit.framework.samples.jpetstore.domain.Account;
07:
08: public interface AccountDao<V extends Account> extends Dao<V> {
09:
10: V getAccount(String username) throws DataAccessException;
11:
12: V getAccount(String username, String password)
13: throws DataAccessException;
14:
15: void insertAccount(V account) throws DataAccessException;
16:
17: void updateAccount(V account) throws DataAccessException;
18:
19: List<String> getUsernameList() throws DataAccessException;
20:
21: }
|