1 package org.springframework.samples.jpetstore.dao; 2 3 import java.util.List ; 4 5 import org.springframework.dao.DataAccessException; 6 import org.springframework.samples.jpetstore.domain.Account; 7 8 public interface AccountDao { 9 10 Account getAccount(String username) throws DataAccessException; 11 12 Account getAccount(String username, String password) throws DataAccessException; 13 14 void insertAccount(Account account) throws DataAccessException; 15 16 void updateAccount(Account account) throws DataAccessException; 17 18 List getUsernameList() throws DataAccessException; 19 20 } 21 | Popular Tags |