01: package com.odal.petstore.persistence.iface;
02:
03: import com.odal.petstore.domain.Account;
04: import com.odal.petstore.OdalPetstoreException;
05:
06: /**
07: * @author Gennady Krizhevsky
08: */
09: public interface AccountDao {
10: Account getAccount(String username) throws OdalPetstoreException;
11:
12: Account getAccount(String username, String password)
13: throws OdalPetstoreException;
14:
15: void insertAccount(Account account) throws OdalPetstoreException;
16:
17: void updateAccount(Account account) throws OdalPetstoreException;
18: }
|