1 /* 2 * IAccountDao 3 * 4 * author nambi sankaran 5 * copyright (C) 2009 nambi sankaran 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * 20 */ 21 package net.sf.emarket.account.repository; 22 23 import java.util.List; 24 25 import net.sf.emarket.account.domain.Account; 26 import net.sf.emarket.user.domain.User; 27 28 public interface IAccountDao { 29 30 public void addAccount(Account account); 31 public long generateAccountId(); 32 public Account getAccountById(String acctId); 33 public int updateAccount(Account account); 34 public int deleteAccountById(String acctId); 35 36 public List<Account> getAccountsForUser(User user); 37 public List<Account> getAccountsOfType(String acctType); 38 }