01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package jfox.test.ejbcomponent.dao;
08:
09: import java.sql.SQLException;
10: import java.util.List;
11:
12: import org.jfox.entity.MappedEntity;
13: import jfox.test.jpa.Account;
14:
15: /**
16: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
17: */
18: public interface AccountDAO {
19:
20: Account getAccountById(long id) throws SQLException;
21:
22: Account getAccountByIdSQL(long id) throws SQLException;
23:
24: MappedEntity getAccountMappedEntityById(long id)
25: throws SQLException;
26:
27: List<Account> getAllAccounts() throws SQLException;
28:
29: Account createAccount(String name, String lastname, String mail)
30: throws SQLException;
31: }
|