org.kuali.kfs.gl.dataaccess.impl
Class SufficientFundBalancesDaoOjb
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
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
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
SufficientFundBalancesDaoOjb
public SufficientFundBalancesDaoOjb()
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 returnchartOfAccountsCode
- the chart of accounts code of the sufficient funds balance to returnaccountNumber
- the account number of the sufficient funds balance to returnfinancialObjectCode
- 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 findchartOfAccountsCode
- the chart of accounts code of sufficient fund balances to findfinancialObjectCode
- 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 deletechartOfAccountsCode
- the chart code of sufficient fund balances to deleteaccountNumber
- 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.