org.kuali.kfs.gl.dataaccess
Interface SufficientFundBalancesDao

All Known Implementing Classes:
SufficientFundBalancesDaoOjb

public interface SufficientFundBalancesDao

A DAO interface declaring methods needed to help SufficientFundBalance records interact with the database


Method Summary
 int deleteByAccountNumber(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)
          Deletes sufficient fund balances associated with a given year, chart, and account number
 Collection getByObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String financialObjectCode)
          Fetches sufficient fund balances based on given keys of fiscal year, chart code, and object code
 SufficientFundBalances getByPrimaryId(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectCode)
          Returns a sufficient fund balance by its primary key values
 void save(SufficientFundBalances sfb)
          Save a sufficient funds balance
 Collection testingGetAllEntries()
          This method should only be used in unit tests.
 

Method Detail

getByObjectCode

Collection getByObjectCode(Integer universityFiscalYear,
                           String chartOfAccountsCode,
                           String financialObjectCode)
Fetches sufficient fund balances based on given keys of fiscal year, chart code, and object code

Parameters:
universityFiscalYear - the university fiscal year of sufficient fund balances to find
chartOfAccountsCode - the chart of accounts code of sufficient fund balances to find
financialObjectCode - the object code of sufficient fund balances to find
Returns:
a Collection of sufficient fund balances, qualified by the parameter values

deleteByAccountNumber

int deleteByAccountNumber(Integer universityFiscalYear,
                          String chartOfAccountsCode,
                          String accountNumber)
Deletes sufficient fund balances associated with a given year, chart, and account number

Parameters:
universityFiscalYear - the university fiscal year of sufficient fund balances to delete
chartOfAccountsCode - the chart code of sufficient fund balances to delete
accountNumber - the account number of sufficient fund balances to delete
Returns:
the number of records deleted

getByPrimaryId

SufficientFundBalances getByPrimaryId(Integer universityFiscalYear,
                                      String chartOfAccountsCode,
                                      String accountNumber,
                                      String financialObjectCode)
Returns a sufficient fund balance by its primary key values

Parameters:
universityFiscalYear - the university fiscal year of the sufficient funds balance to return
chartOfAccountsCode - the chart of accounts code of the sufficient funds balance to return
accountNumber - the account number of the sufficient funds balance to return
financialObjectCode - the object code of the sufficient funds balance to return
Returns:
the qualifying sufficient funds balance record, or null no suitable record can be found

save

void save(SufficientFundBalances sfb)
Save a sufficient funds balance

Parameters:
sfb - the sufficient funds balance to save

testingGetAllEntries

Collection testingGetAllEntries()
This method should only be used in unit tests. It loads all the gl_sf_balances_t rows in memory into a collection. This won't sace for production.

Returns:
a Collection with all sufficient funds balances in the database


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.