org.kuali.kfs.gl.dataaccess.impl
Class SufficientFundBalancesDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.kfs.gl.dataaccess.impl.SufficientFundBalancesDaoOjb
All Implemented Interfaces:
SufficientFundBalancesDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class SufficientFundBalancesDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements SufficientFundBalancesDao

An OJB implementation of the SufficientFundBalancesDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
SufficientFundBalancesDaoOjb()
           
 
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)
          Builds an OJB query based on the parameter values and returns all the sufficient fund balances that match that record
 SufficientFundBalances getByPrimaryId(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectCode)
          Builds an OJB primary key query from the given parameters and returns the result
 void save(SufficientFundBalances sfb)
          Saves a sufficient fund balance record
 Collection testingGetAllEntries()
          This method should only be used in unit tests.
 
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SufficientFundBalancesDaoOjb

public SufficientFundBalancesDaoOjb()
Method Detail

getByPrimaryId

public SufficientFundBalances getByPrimaryId(Integer universityFiscalYear,
                                             String chartOfAccountsCode,
                                             String accountNumber,
                                             String financialObjectCode)
Builds an OJB primary key query from the given parameters and returns the result

Specified by:
getByPrimaryId in interface SufficientFundBalancesDao
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
See Also:
SufficientFundBalancesDao.getByPrimaryId(java.lang.Integer, java.lang.String, java.lang.String, java.lang.String)

save

public void save(SufficientFundBalances sfb)
Saves a sufficient fund balance record

Specified by:
save in interface SufficientFundBalancesDao
Parameters:
sfb - the sufficient funds balance record to save
See Also:
SufficientFundBalancesDao.save(org.kuali.kfs.gl.businessobject.SufficientFundBalances)

getByObjectCode

public Collection getByObjectCode(Integer universityFiscalYear,
                                  String chartOfAccountsCode,
                                  String financialObjectCode)
Builds an OJB query based on the parameter values and returns all the sufficient fund balances that match that record

Specified by:
getByObjectCode in interface SufficientFundBalancesDao
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
See Also:
SufficientFundBalancesDao.getByObjectCode(java.lang.Integer, java.lang.String, java.lang.String)

deleteByAccountNumber

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

Specified by:
deleteByAccountNumber in interface SufficientFundBalancesDao
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
See Also:
SufficientFundBalancesDao.deleteByAccountNumber(java.lang.Integer, java.lang.String, java.lang.String)

testingGetAllEntries

public 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.

Specified by:
testingGetAllEntries in interface SufficientFundBalancesDao
Returns:
a Collection of all sufficient funds records in the database


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