|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: MyDao
Description: the dao interface
Copyright: Copyright (c) 2002
Company:
Method Summary | |
boolean |
accountExists(AccountPK key)
|
int |
deleteAccount(AccountPK pk)
Delete an Account |
int |
insertAccount(AccountPK pk,
java.lang.String name,
java.lang.String address,
double balance)
Insert an Account |
AccountOM |
readAccount(AccountPK pk)
Get an Account |
int |
updateAccount(AccountPK key,
java.lang.String name,
java.lang.String address,
double balance)
Update an account |
Method Detail |
public int insertAccount(AccountPK pk, java.lang.String name, java.lang.String address, double balance) throws DAOException
pk
- primary key for the accountname
- the account user nameaddress
- the account user addressbalance
- the initial balance for this accountDAOException
- a data access error occuredpublic int deleteAccount(AccountPK pk) throws DAOException
the
- primary keyDAOException
- a data access error occuredpublic AccountOM readAccount(AccountPK pk) throws DAOException
the
- primary keyDAOException
- a data access error occuredpublic int updateAccount(AccountPK key, java.lang.String name, java.lang.String address, double balance) throws DAOException
key
- the primary keyname
- user nameaddress
- user addressbalance
- user balanceDAOException
- a data access error occuredpublic boolean accountExists(AccountPK key) throws DAOException
key
- the Primary Key for this accountDAOException
- a data access error occured
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |