public class BalanceDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements BalanceDao, LedgerBalanceBalancingDao
Constructor and Description |
---|
BalanceDaoOjb() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
buildAttributeList(boolean isExtended)
This method builds the atrribute list used by balance searching
|
protected org.apache.ojb.broker.query.Criteria |
buildCriteriaFromMap(Map fieldValues,
Balance balance,
Collection<String> encumbranceBalanceTypes)
This method builds the query criteria based on the input field map
|
protected List<String> |
buildGroupByList()
This method builds group by attribute list used by balance searching
|
int |
countBalancesForFiscalYear(Integer year)
Returns the count of balances for a given fiscal year; this method is used for year end job reporting
|
protected void |
criteriaBuilder(org.apache.ojb.broker.query.Criteria criteria,
String name,
Collection collection)
This method adds to the given criteria if the given collection is non-empty.
|
protected void |
criteriaBuilderHelper(org.apache.ojb.broker.query.Criteria criteria,
String name,
Collection collection,
boolean negate)
This method provides the implementation for the conveniences methods criteriaBuilder & negatedCriteriaBuilder
|
Iterator<Balance> |
findAccountBalances(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber)
Find all matching account balances.
|
Iterator<Balance> |
findAccountBalances(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sfCode)
Find all matching account balances.
|
Iterator<Balance> |
findBalance(Map fieldValues,
boolean isConsolidated,
Collection<String> encumbranceBalanceTypes)
Given a map of values, build a query out of those and find all the balances that qualify
|
Iterator<Balance> |
findBalances(Account account,
Integer fiscalYear,
Collection includedObjectCodes,
Collection excludedObjectCodes,
Collection objectTypeCodes,
Collection balanceTypeCodes)
Build a query based on all the parameters, and return an Iterator of all Balances from the database that qualify
|
Iterator<Balance> |
findBalancesForFiscalYear(Integer year)
Queries the database for all the balances for a given fiscal year
|
Integer |
findCountGreaterOrEqualThan(Integer year) |
Iterator<Balance> |
findCumulativeBalancesToForwardForFiscalYear(Integer year,
Collection<String> cumulativeForwardBalanceObjectTypes,
Collection<String> contractsAndGrantsDenotingValues,
Collection<String> subFundGroupsForCumulativeBalanceForwarding,
Collection<String> cumulativeBalanceForwardBalanceTypes,
boolean fundGroupDenotesCGInd)
Returns the C&G balances specifically to be forwarded to the next fiscal year, based on the "cumulative" rule
|
Iterator<Balance> |
findGeneralBalancesToForwardForFiscalYear(Integer year,
Collection<String> generalForwardBalanceObjectTypes,
Collection<String> generalBalanceForwardBalanceTypes)
Returns the balances specifically to be forwarded to the next fiscal year, based on the "general" rule
|
Iterator<Balance> |
findNominalActivityBalancesForFiscalYear(Integer year,
Collection<String> nominalActivityObjectTypeCodes,
SystemOptions currentYearOptions)
Finds all of the balances for the fiscal year that should be processed by nominal activity closing
|
Iterator<Balance> |
findOrganizationReversionBalancesForFiscalYear(Integer year,
boolean endOfYear,
SystemOptions options,
List<ParameterEvaluator> parameterEvaluators)
Returns a list of balances to return for the Organization Reversion year end job to process
|
Balance |
getBalanceByTransaction(Transaction t)
Using values from the transaction as keys, lookup the balance the transaction would affect were it posted
|
protected org.apache.ojb.broker.query.ReportQueryByCriteria |
getBalanceCountQuery(Map fieldValues,
Collection<String> encumbranceBalanceTypes)
build the query for balance search
|
protected org.apache.ojb.broker.query.Query |
getBalanceQuery(Map fieldValues,
boolean isConsolidated,
Collection<String> encumbranceBalanceTypes)
build the query for balance search
|
protected org.apache.ojb.broker.query.ReportQueryByCriteria |
getCashBalanceCountQuery(Map fieldValues,
Collection<String> encumbranceBalanceTypes)
Builds a query for cash balances, based on the given field values
|
protected org.apache.ojb.broker.query.Query |
getCashBalanceQuery(Map fieldValues,
boolean isConsolidated,
Collection<String> encumbranceBalanceTypes)
build the query for cash balance search
|
Iterator |
getConsolidatedBalanceRecordCount(Map fieldValues,
Collection<String> encumbranceBalanceTypes)
Given a Map of keys to use as a query, if we performed that query as a consolidated query...
|
int |
getConsolidatedCashBalanceRecordCount(Map fieldValues,
Collection<String> encumbranceBalanceTypes)
Given a map of keys, return all of the report data about qualifying cash balances
|
Balance |
getCurrentBudgetForObjectCode(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String objectCode)
Since SubAccountNumber, SubObjectCode, and ObjectType are all part of the primary key of Balance, you're guaranteed to get
one of those records when you call this method.
|
Integer |
getDetailedCashBalanceRecordCount(Map fieldValues,
Collection<String> encumbranceBalanceTypes)
Get the number of detailed cash balance records that would be returned, were we to do a query based on the given fieldValues
|
Iterator<Object[]> |
getGlSummary(int universityFiscalYear,
Collection<String> balanceTypeCodes)
Does a ReportQuery to summarize GL balance data
|
Iterator<Balance> |
lookupCashBalance(Map fieldValues,
boolean isConsolidated,
Collection<String> encumbranceBalanceTypes)
Using the given fieldValues as keys, return all cash balance records.
|
protected void |
negatedCriteriaBuilder(org.apache.ojb.broker.query.Criteria criteria,
String name,
Collection collection)
Similar to criteriaBuilder, this adds a negative criterion (NOT EQUALS, NOT IN)
|
void |
purgeYearByChart(String chartOfAccountsCode,
int year)
Purge the sufficient funds balance table by year/chart
|
getDbPlatform, setDbPlatform
public BalanceDaoOjb()
public Iterator<Object[]> getGlSummary(int universityFiscalYear, Collection<String> balanceTypeCodes)
getGlSummary
in interface BalanceDao
universityFiscalYear
- the fiscal year of balances to search forbalanceTypeCodes
- a list of balance type codes of balances to search fororg.kuali.ole.gl.dataaccess.BalanceDao#getGlSummary(int, java.util.List)
public Iterator<Balance> findBalancesForFiscalYear(Integer year)
findBalancesForFiscalYear
in interface BalanceDao
year
- the university fiscal year of balances to returnBalanceDao.findBalancesForFiscalYear(java.lang.Integer)
public Balance getBalanceByTransaction(Transaction t)
getBalanceByTransaction
in interface BalanceDao
t
- a transactionBalanceDao.getBalanceByTransaction(org.kuali.ole.gl.businessobject.Transaction)
protected void criteriaBuilder(org.apache.ojb.broker.query.Criteria criteria, String name, Collection collection)
criteria
- - the criteria that might have a criterion appendedname
- - name of the attributecollection
- - the collection to inspectprotected void negatedCriteriaBuilder(org.apache.ojb.broker.query.Criteria criteria, String name, Collection collection)
criteria
- - the criteria that might have a criterion appendedname
- - name of the attributecollection
- - the collection to inspectprotected void criteriaBuilderHelper(org.apache.ojb.broker.query.Criteria criteria, String name, Collection collection, boolean negate)
criteria
- - the criteria that might have a criterion appendedname
- - name of the attributecollection
- - the collection to inspectnegate
- - the criterion will be negated (NOT EQUALS, NOT IN) when this is truepublic Iterator<Balance> findBalances(Account account, Integer fiscalYear, Collection includedObjectCodes, Collection excludedObjectCodes, Collection objectTypeCodes, Collection balanceTypeCodes)
findBalances
in interface BalanceDao
account
- the account of balances to findfiscalYear
- the fiscal year of balances to findincludedObjectCodes
- a Collection of object codes found balances should have one ofexcludedObjectCodes
- a Collection of object codes found balances should not have one ofobjectTypeCodes
- a Collection of object type codes found balances should have one ofbalanceTypeCodes
- a Collection of balance type codes found balances should have one ofBalanceDao.findBalances(org.kuali.ole.coa.businessobject.Account, java.lang.Integer,
java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection)
public Iterator<Balance> lookupCashBalance(Map fieldValues, boolean isConsolidated, Collection<String> encumbranceBalanceTypes)
lookupCashBalance
in interface BalanceDao
fieldValues
- the input fields and valuesisConsolidated
- consolidation option is applied or notencumbranceBalanceTypes
- a list of encumbrance Balance Typesorg.kuali.ole.gl.dataaccess.BalanceDao#lookupCashBalance(Map, boolean, List)
public Integer getDetailedCashBalanceRecordCount(Map fieldValues, Collection<String> encumbranceBalanceTypes)
getDetailedCashBalanceRecordCount
in interface BalanceDao
fieldValues
- the input fields and valuesisConsolidated
- consolidation option is applied or notorg.kuali.ole.gl.dataaccess.BalanceDao#getDetailedCashBalanceRecordCount(Map, List)
public int getConsolidatedCashBalanceRecordCount(Map fieldValues, Collection<String> encumbranceBalanceTypes)
getConsolidatedCashBalanceRecordCount
in interface BalanceDao
fieldValues
- the input fields and valuesencumbranceBalanceTypes
- a list of encumbrance balance typesorg.kuali.ole.gl.dataaccess.BalanceDao#getConsolidatedCashBalanceRecordCount(Map, List)
public Iterator<Balance> findBalance(Map fieldValues, boolean isConsolidated, Collection<String> encumbranceBalanceTypes)
findBalance
in interface BalanceDao
fieldValues
- a Map of fieldValues to use as keys in the queryisConsolidated
- should the results be consolidated?encumbranceBalanceTypes
- a list of encumbrance balance typesorg.kuali.ole.gl.dataaccess.BalanceDao#findBalance(java.util.Map, boolean)
public Iterator getConsolidatedBalanceRecordCount(Map fieldValues, Collection<String> encumbranceBalanceTypes)
getConsolidatedBalanceRecordCount
in interface BalanceDao
fieldValues
- a Map of values to use as keys to build the queryencumbranceBalanceTypes
- a list of encumbrance balance typesorg.kuali.ole.gl.dataaccess.BalanceDao#getConsolidatedBalanceRecordCount(Map, List)
protected org.apache.ojb.broker.query.ReportQueryByCriteria getCashBalanceCountQuery(Map fieldValues, Collection<String> encumbranceBalanceTypes)
fieldValues
- a map of keys to use when building the queryprotected org.apache.ojb.broker.query.Query getCashBalanceQuery(Map fieldValues, boolean isConsolidated, Collection<String> encumbranceBalanceTypes)
fieldValues
- Map of keys to use for the queryisConsolidated
- should the results be consolidated?protected org.apache.ojb.broker.query.Query getBalanceQuery(Map fieldValues, boolean isConsolidated, Collection<String> encumbranceBalanceTypes)
fieldValues
- Map of keys to use for the queryisConsolidated
- should the results be consolidated?protected org.apache.ojb.broker.query.ReportQueryByCriteria getBalanceCountQuery(Map fieldValues, Collection<String> encumbranceBalanceTypes)
fieldValues
- Map of keys to use for the queryprotected org.apache.ojb.broker.query.Criteria buildCriteriaFromMap(Map fieldValues, Balance balance, Collection<String> encumbranceBalanceTypes)
fieldValues
- Map of keys to use for the querybalance
- this really usen't used in the methodprotected List<String> buildAttributeList(boolean isExtended)
isExtended
- should we add the attributes to sum each of the monthly totals?protected List<String> buildGroupByList()
public Balance getCurrentBudgetForObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String objectCode)
getCurrentBudgetForObjectCode
in interface BalanceDao
universityFiscalYear
- the fiscal year of the CB balance to returnchartOfAccountsCode
- the chart of the accounts code of the CB balanes to returnaccountNumber
- the account number of the CB balance to returnobjectCode
- the object code of the CB balance to returnBalanceDao.getCurrentBudgetForObjectCode(java.lang.Integer, java.lang.String,
java.lang.String, java.lang.String)
public Iterator<Balance> findAccountBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)
findAccountBalances
in interface BalanceDao
universityFiscalYear
- the university fiscal year of balances to returnchartOfAccountsCode
- the chart of accounts code of balances to returnaccountNumber
- the account number of balances to returnpublic Iterator<Balance> findAccountBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String sfCode)
findAccountBalances
in interface BalanceDao
universityFiscalYear
- the university fiscal year of balances to returnchartOfAccountsCode
- the chart of accounts code of balances to returnaccountNumber
- the account number of balances to returnsfCode
- the sufficient funds code, used to sort onpublic void purgeYearByChart(String chartOfAccountsCode, int year)
purgeYearByChart
in interface BalanceDao
chart
- the chart of balances to purgeyear
- the university fiscal year of balances to purgepublic int countBalancesForFiscalYear(Integer year)
countBalancesForFiscalYear
in interface BalanceDao
year
- the university fiscal year to count balances forBalanceDao.countBalancesForFiscalYear(java.lang.Integer)
public Iterator<Balance> findNominalActivityBalancesForFiscalYear(Integer year, Collection<String> nominalActivityObjectTypeCodes, SystemOptions currentYearOptions)
findNominalActivityBalancesForFiscalYear
in interface BalanceDao
year
- the university fiscal year of balances to findnominalActivityObjectTypeCodes
- a List of nominal activity object type codescurrentYearOptions
- current year optionsorg.kuali.ole.gl.dataaccess.BalanceDao#findNominalActivityBalancesForFiscalYear(Integer, List, SystemOptions)
public Iterator<Balance> findGeneralBalancesToForwardForFiscalYear(Integer year, Collection<String> generalForwardBalanceObjectTypes, Collection<String> generalBalanceForwardBalanceTypes)
BalanceDao
findGeneralBalancesToForwardForFiscalYear
in interface BalanceDao
year
- the fiscal year to find balances forgeneralForwardBalanceObjectTypes
- a List of general Forward Balance Object TypesgeneralBalanceForwardBalanceTypes
- an array of general Balance Forward Balance Typesorg.kuali.ole.gl.dataaccess.BalanceDao#findGeneralBalancesToForwardForFiscalYear(java.lang.Integer, java.util.List,
java.lang.String[])
public Iterator<Balance> findCumulativeBalancesToForwardForFiscalYear(Integer year, Collection<String> cumulativeForwardBalanceObjectTypes, Collection<String> contractsAndGrantsDenotingValues, Collection<String> subFundGroupsForCumulativeBalanceForwarding, Collection<String> cumulativeBalanceForwardBalanceTypes, boolean fundGroupDenotesCGInd)
BalanceDao
findCumulativeBalancesToForwardForFiscalYear
in interface BalanceDao
year
- the fiscal year to find balances forcumulativeForwardBalanceObjectTypes
- a List of cumulative Forward Balance Object TypescontractsAndGrantsDenotingValues
- a List of contracts And Grants Denoting ValuessubFundGroupsForCumulativeBalanceForwarding
- an array of sub Fund Groups For Cumulative Balance ForwardingcumulativeBalanceForwardBalanceTypes
- an array of cumulative Balance Forward Balance Typesorg.kuali.ole.gl.dataaccess.BalanceDao#findCumulativeBalancesToForwardForFiscalYear(java.lang.Integer, java.util.List,
java.util.List, java.lang.String[], java.lang.String[])
public Iterator<Balance> findOrganizationReversionBalancesForFiscalYear(Integer year, boolean endOfYear, SystemOptions options, List<ParameterEvaluator> parameterEvaluators)
findOrganizationReversionBalancesForFiscalYear
in interface BalanceDao
the
- university fiscal year to find balances forendOfYear
- if true, use current year accounts, otherwise use prior year accountsorg.kuali.ole.gl.dataaccess.BalanceDao#findOrganizationReversionBalancesForFiscalYear(Integer, boolean, SystemOptions)
public Integer findCountGreaterOrEqualThan(Integer year)
findCountGreaterOrEqualThan
in interface LedgerBalanceBalancingDao
year
- the given university fiscal yearorg.kuali.ole.gl.dataaccess.BalancingDao#findCountGreaterOrEqualThan(java.lang.Integer)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.