com.xenonsoft.bridgetown.test.aop.transaction
Interface ICurrentAccountDAO

All Known Implementing Classes:
CurrentAccountDAO

public interface ICurrentAccountDAO

Interface for data access object that is responsible for persisting the current account business bean. This interface design follows the CRUDS idiom ( Create, Retrieve, Update, Delete and Search ).

Version:
$Id: ICurrentAccountDAO.java,v 1.2 2005/02/23 01:32:38 peter_pilgrim Exp $
Author:
Peter Pilgrim, 29-Oct-2004 21:29:32

Method Summary
 void create(CurrentAccountBean account)
          Insert a new saving account records into the database
 void delete(CurrentAccountBean account)
          Delete a saving account records from the database
 java.util.List findAll()
          Reads the current account by its primary key (account id )
 CurrentAccountBean retrieve(CurrentAccountBean account)
          Reads the current account by its primary key (account id )
 void update(CurrentAccountBean account)
          Updates account records into the database
 

Method Detail

create

public void create(CurrentAccountBean account)
            throws java.sql.SQLException
Insert a new saving account records into the database

Parameters:
account - the account bean
Throws:
java.sql.SQLException - if a database persistence I/O problem occurs

retrieve

public CurrentAccountBean retrieve(CurrentAccountBean account)
                            throws java.sql.SQLException
Reads the current account by its primary key (account id )

Parameters:
account - the account bean with the account id
Returns:
the account bean found or null if no such record exists
Throws:
java.sql.SQLException - if a database persistence I/O problem occurs

update

public void update(CurrentAccountBean account)
            throws java.sql.SQLException
Updates account records into the database

Parameters:
account - the account bean
Throws:
java.sql.SQLException - if a database persistence I/O problem occurs

delete

public void delete(CurrentAccountBean account)
            throws java.sql.SQLException
Delete a saving account records from the database

Throws:
java.sql.SQLException - if a database persistence I/O problem occurs

findAll

public java.util.List findAll()
                       throws java.sql.SQLException
Reads the current account by its primary key (account id )

Returns:
the account bean found or null if no such record exists
Throws:
java.sql.SQLException - if a database persistence I/O problem occurs


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.