public class EncumbranceDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements EncumbranceDao
Constructor and Description |
---|
EncumbranceDaoOjb() |
Modifier and Type | Method and Description |
---|---|
protected List |
buildAttributeList()
This method builds the atrribute list used by balance searching
|
protected List |
buildGroupByList()
This method builds group by attribute list used by balance searching
|
Integer |
findCountGreaterOrEqualThan(Integer year) |
Iterator |
findOpenEncumbrance(Map fieldValues,
boolean includeZeroEncumbrances)
Queries the database to find all open encumbrances that qualify by the given keys
|
Iterator |
getAllEncumbrances()
fetch all encumbrance records from GL open encumbrance table
|
Encumbrance |
getEncumbranceByTransaction(Transaction t)
Returns an encumbrance that would be affected by the given transaction
|
Iterator |
getEncumbrancesToClose(Integer fiscalYear)
Returns an Iterator of all encumbrances that need to be closed for the fiscal year
|
protected org.apache.ojb.broker.query.Query |
getOpenEncumbranceQuery(Map fieldValues,
boolean includeZeroEncumbrances)
build the query for encumbrance search
|
Integer |
getOpenEncumbranceRecordCount(Map fieldValues,
boolean includeZeroEncumbrances)
Counts the number of open encumbrances that have the keys given in the map
|
Iterator |
getSummarizedEncumbrances(String documentTypeCode,
boolean included)
group all encumbrances with/without the given document type code by fiscal year, chart, account, sub-account, object code,
sub object code, and balance type code, and summarize the encumbrance amount and the encumbrance close amount.
|
void |
purgeYearByChart(String chartOfAccountsCode,
int year)
Purges the database of all those encumbrances with the given chart and year
|
getDbPlatform, setDbPlatform
public EncumbranceDaoOjb()
public Encumbrance getEncumbranceByTransaction(Transaction t)
getEncumbranceByTransaction
in interface EncumbranceDao
t
- the transaction to find the affected encumbrance forEncumbranceDao.getEncumbranceByTransaction(org.kuali.ole.gl.businessobject.Transaction)
public Iterator getEncumbrancesToClose(Integer fiscalYear)
getEncumbrancesToClose
in interface EncumbranceDao
fiscalYear
- a fiscal year to find encumbrances forEncumbranceDao.getEncumbrancesToClose(java.lang.Integer)
public void purgeYearByChart(String chartOfAccountsCode, int year)
purgeYearByChart
in interface EncumbranceDao
chartOfAccountsCode
- the chart of accounts code purged encumbrances will haveyear
- the university fiscal year purged encumbrances will haveEncumbranceDao.purgeYearByChart(java.lang.String, int)
public Iterator getAllEncumbrances()
getAllEncumbrances
in interface EncumbranceDao
EncumbranceDao.getAllEncumbrances()
public Iterator getSummarizedEncumbrances(String documentTypeCode, boolean included)
getSummarizedEncumbrances
in interface EncumbranceDao
documentTypeCode
- the given document type codeincluded
- indicate if all encumbrances with the given document type are included in the results or notEncumbranceDao.getSummarizedEncumbrances(String, boolean)
public Iterator findOpenEncumbrance(Map fieldValues, boolean includeZeroEncumbrances)
findOpenEncumbrance
in interface EncumbranceDao
fieldValues
- the input fields and valuesincludeZeroEncumbrances
- should the query include encumbrances which have zeroed out?org.kuali.ole.gl.dataaccess.EncumbranceDao#findOpenEncumbrance(java.util.Map)
public Integer getOpenEncumbranceRecordCount(Map fieldValues, boolean includeZeroEncumbrances)
getOpenEncumbranceRecordCount
in interface EncumbranceDao
fieldValues
- the input fields and valuesincludeZeroEncumbrances
- should the query include encumbrances which have zeroed out?org.kuali.ole.gl.dataaccess.EncumbranceDao#getOpenEncumbranceRecordCount(java.util.Map)
protected org.apache.ojb.broker.query.Query getOpenEncumbranceQuery(Map fieldValues, boolean includeZeroEncumbrances)
fieldValues
- a Map of values to use as keys for the queryincludeZeroEncumbrances
- should the query include encumbrances which have zeroed out?protected List buildAttributeList()
protected List buildGroupByList()
public Integer findCountGreaterOrEqualThan(Integer year)
findCountGreaterOrEqualThan
in interface EncumbranceDao
year
- the given university fiscal yearEncumbranceDao.findCountGreaterOrEqualThan(java.lang.Integer)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.