AccountDAO.java :  » J2EE » jfox » jfox » test » ejbcomponent » dao » Java Open Source

Java Open Source » J2EE » jfox 
jfox » jfox » test » ejbcomponent » dao » AccountDAO.java
/*
 * JFox - The most lightweight Java EE Application Server!
 * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
 *
 * JFox is licenced and re-distributable under GNU LGPL.
 */
package jfox.test.ejbcomponent.dao;

import java.sql.SQLException;
import java.util.List;

import org.jfox.entity.MappedEntity;
import jfox.test.jpa.Account;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
public interface AccountDAO {

    Account getAccountById(long id) throws SQLException;

    Account getAccountByIdSQL(long id) throws SQLException;

    MappedEntity getAccountMappedEntityById(long id) throws SQLException;

    List<Account> getAllAccounts() throws SQLException;

    Account createAccount(String name, String lastname, String mail) throws SQLException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.