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

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.AccountBalanceDaoOjb
All Implemented Interfaces:
AccountBalanceDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class AccountBalanceDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements AccountBalanceDao

An OJB implmentation of the AccountBalanceDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AccountBalanceDaoOjb()
           
 
Method Summary
 List findAccountBalanceByConsolidationByObjectTypes(String[] objectTypes, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, boolean isExcludeCostShare, boolean isConsolidated, int pendingEntriesCode)
          Get available balances by consolidation for specific object types
 List findAccountBalanceByLevel(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialConsolidationObjectCode, boolean isCostShareExcluded, boolean isConsolidated, int pendingEntriesCode)
          Get available balances by level
 List findAccountBalanceByObject(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectLevelCode, String financialReportingSortCode, boolean isCostShareExcluded, boolean isConsolidated, int pendingEntriesCode)
          Get available balances by object
 Iterator findAvailableAccountBalance(Map fieldValues)
          This method finds the available account balances according to input fields and values
 Iterator findConsolidatedAvailableAccountBalance(Map fieldValues)
          This method finds the available account balances according to input fields and values
 Integer findCountGreaterOrEqualThan(Integer year)
           
 AccountBalanceConsolidationDao getAccountBalanceConsolidationDao()
           
 AccountBalanceLevelDao getAccountBalanceLevelDao()
           
 AccountBalanceObjectDao getAccountBalanceObjectDao()
           
 AccountBalance getByTransaction(Transaction t)
          Given a transaction, finds a matching account balance in the database
 void purgeYearByChart(String chartOfAccountsCode, int year)
          Purge an entire fiscal year for a single chart.
 void save(AccountBalance ab)
          Saves an account balance to the database
 void setAccountBalanceConsolidationDao(AccountBalanceConsolidationDao accountBalanceConsolidationDao)
           
 void setAccountBalanceLevelDao(AccountBalanceLevelDao accountBalanceLevelDao)
           
 void setAccountBalanceObjectDao(AccountBalanceObjectDao accountBalanceObjectDao)
           
 
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

AccountBalanceDaoOjb

public AccountBalanceDaoOjb()
Method Detail

getByTransaction

public AccountBalance getByTransaction(Transaction t)
Given a transaction, finds a matching account balance in the database

Specified by:
getByTransaction in interface AccountBalanceDao
Parameters:
t - a transaction to find an appropriate related account balance for
Returns:
an appropriate account balance
See Also:
AccountBalanceDao.getByTransaction(org.kuali.kfs.gl.businessobject.Transaction)

save

public void save(AccountBalance ab)
Saves an account balance to the database

Specified by:
save in interface AccountBalanceDao
Parameters:
ab - an account balance to save
See Also:
AccountBalanceDao.save(org.kuali.kfs.gl.businessobject.AccountBalance)

findConsolidatedAvailableAccountBalance

public Iterator findConsolidatedAvailableAccountBalance(Map fieldValues)
This method finds the available account balances according to input fields and values

Specified by:
findConsolidatedAvailableAccountBalance in interface AccountBalanceDao
Parameters:
fieldValues - the input fields and values
Returns:
the summary records of account balance entries
See Also:
org.kuali.kfs.gl.dataaccess.AccountBalanceDao#findAvailableAccountBalance(java.util.Map, boolean)

findAvailableAccountBalance

public Iterator findAvailableAccountBalance(Map fieldValues)
This method finds the available account balances according to input fields and values

Specified by:
findAvailableAccountBalance in interface AccountBalanceDao
Parameters:
fieldValues - the input fields and values
Returns:
account balance entries
See Also:
AccountBalanceDao.findAvailableAccountBalance(java.util.Map)

findAccountBalanceByConsolidationByObjectTypes

public List findAccountBalanceByConsolidationByObjectTypes(String[] objectTypes,
                                                           Integer universityFiscalYear,
                                                           String chartOfAccountsCode,
                                                           String accountNumber,
                                                           boolean isExcludeCostShare,
                                                           boolean isConsolidated,
                                                           int pendingEntriesCode)
Get available balances by consolidation for specific object types

Specified by:
findAccountBalanceByConsolidationByObjectTypes in interface AccountBalanceDao
Parameters:
objectTypes - the object types that reported account balances must have
universityFiscalYear - the university fiscal year of account balances to find
chartOfAccountsCode - the chart of accounts of account balances to find
accountNumber - the account number of account balances to find
isExcludeCostShare - whether cost share entries should be excluded from this inquiry
isConsolidated - whether the results of this should be consolidated or not
pendingEntriesCode - whether to include no pending entries, approved pending entries, or all pending entries
Returns:
a List of Maps with the appropriate query results
See Also:
AccountBalanceDao.findAccountBalanceByConsolidationByObjectTypes(java.lang.String[], java.lang.Integer, java.lang.String, java.lang.String, boolean, boolean, int)

findAccountBalanceByLevel

public List findAccountBalanceByLevel(Integer universityFiscalYear,
                                      String chartOfAccountsCode,
                                      String accountNumber,
                                      String financialConsolidationObjectCode,
                                      boolean isCostShareExcluded,
                                      boolean isConsolidated,
                                      int pendingEntriesCode)
Get available balances by level

Specified by:
findAccountBalanceByLevel in interface AccountBalanceDao
Parameters:
universityFiscalYear - the university fiscal year of account balances to find
chartOfAccountsCode - the chart of accounts of account balances to find
accountNumber - the account number of account balances to find
financialConsolidationObjectCode - the consolidation code of account balances to find
isCostShareExcluded - whether cost share entries should be excluded from this inquiry
isConsolidated - whether the results of this should be consolidated or not
Returns:
a List of Mapswith the appropriate query results
See Also:
AccountBalanceDao.findAccountBalanceByLevel(java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, int)

findAccountBalanceByObject

public List findAccountBalanceByObject(Integer universityFiscalYear,
                                       String chartOfAccountsCode,
                                       String accountNumber,
                                       String financialObjectLevelCode,
                                       String financialReportingSortCode,
                                       boolean isCostShareExcluded,
                                       boolean isConsolidated,
                                       int pendingEntriesCode)
Get available balances by object

Specified by:
findAccountBalanceByObject in interface AccountBalanceDao
Parameters:
universityFiscalYear - the university fiscal year of account balances to find
chartOfAccountsCode - the chart of accounts of account balances to find
accountNumber - the account number of account balances to find
financialObjectLevelCode - the object level code of account balances to find
financialReportingSortCode -
isCostShareExcluded - whether cost share entries should be excluded from this inquiry
isConsolidated - whether the results of this should be consolidated or not
Returns:
a List of Maps with the appropriate query results
See Also:
AccountBalanceDao.findAccountBalanceByObject(java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, int)

purgeYearByChart

public void purgeYearByChart(String chartOfAccountsCode,
                             int year)
Purge an entire fiscal year for a single chart.

Specified by:
purgeYearByChart in interface AccountBalanceDao
Parameters:
chartOfAccountsCode - the chart of accounts code of account balances to purge
year - the fiscal year of account balances to purge
See Also:
AccountBalanceDao.purgeYearByChart(java.lang.String, int)

findCountGreaterOrEqualThan

public Integer findCountGreaterOrEqualThan(Integer year)
Specified by:
findCountGreaterOrEqualThan in interface AccountBalanceDao
Parameters:
year - the given university fiscal year
Returns:
count of rows for the given fiscal year
See Also:
AccountBalanceDao.findCountGreaterOrEqualThan(java.lang.Integer)

getAccountBalanceConsolidationDao

public AccountBalanceConsolidationDao getAccountBalanceConsolidationDao()

setAccountBalanceConsolidationDao

public void setAccountBalanceConsolidationDao(AccountBalanceConsolidationDao accountBalanceConsolidationDao)

getAccountBalanceLevelDao

public AccountBalanceLevelDao getAccountBalanceLevelDao()

setAccountBalanceLevelDao

public void setAccountBalanceLevelDao(AccountBalanceLevelDao accountBalanceLevelDao)

getAccountBalanceObjectDao

public AccountBalanceObjectDao getAccountBalanceObjectDao()

setAccountBalanceObjectDao

public void setAccountBalanceObjectDao(AccountBalanceObjectDao accountBalanceObjectDao)


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