KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > petstore > dao > AccountDAO


1 /*
2  * JFox - The most lightweight Java EE Application Server!
3  * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
4  *
5  * JFox is licenced and re-distributable under GNU LGPL.
6  */

7 package org.jfox.petstore.dao;
8
9 import java.sql.SQLException JavaDoc;
10 import java.util.List JavaDoc;
11
12 import org.jfox.petstore.entity.Account;
13
14 public interface AccountDAO {
15
16     Account getAccount(String JavaDoc username) throws SQLException JavaDoc;
17
18     Account getAccount(String JavaDoc username, String JavaDoc password) throws SQLException JavaDoc;
19
20     void insertAccount(Account account) throws SQLException JavaDoc;
21
22     void updateAccount(Account account) throws SQLException JavaDoc;
23
24     List JavaDoc<String JavaDoc> getUsernameList() throws SQLException JavaDoc;
25
26 }
27
Popular Tags