KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > jpetstore > dao > AccountDao


1 package org.springframework.samples.jpetstore.dao;
2
3 import java.util.List JavaDoc;
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 JavaDoc username) throws DataAccessException;
11
12   Account getAccount(String JavaDoc username, String JavaDoc password) throws DataAccessException;
13
14   void insertAccount(Account account) throws DataAccessException;
15
16   void updateAccount(Account account) throws DataAccessException;
17
18     List JavaDoc getUsernameList() throws DataAccessException;
19
20 }
21
Popular Tags