org.kuali.kfs.sys.dataaccess.impl
Class GeneralLedgerPendingEntryDaoOjb

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.sys.dataaccess.impl.GeneralLedgerPendingEntryDaoOjb
All Implemented Interfaces:
GeneralLedgerPendingEntryDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
LaborLedgerPendingEntryDaoOjb

public class GeneralLedgerPendingEntryDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements GeneralLedgerPendingEntryDao


Field Summary
protected static String ACCOUNT_NUMBER
           
protected static String CHART_FINANCIAL_CASH_OBJECT_CODE
           
protected static String CHART_OF_ACCOUNTS_CODE
           
protected static String FINANCIAL_DOCUMENT_APPROVED_CODE
           
protected static String OBJECT_TYPE_FIN_OBJECT_TYPE_DEBITCREDIT_CD
           
protected static String TRANSACTION_LEDGER_ENTRY_SEQUENCE_NUMBER
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
GeneralLedgerPendingEntryDaoOjb()
           
 
Method Summary
protected  void addStatusCode(org.apache.ojb.broker.query.Criteria criteria, boolean isOnlyApproved)
          add the status code into the given criteria.
protected  List buildApprovalCodeList()
          build a status code list including the legal approval codes
protected  List buildAttributeList()
          This method builds the atrribute list used by balance searching
 org.apache.ojb.broker.query.Criteria buildCriteriaFromMap(Map fieldValues, Object businessObject)
          This method builds an OJB query criteria based on the input field map
protected  org.apache.ojb.broker.query.Criteria buildCriteriaToExcludeFundBalance()
          This method creates Criteria that exclude the fund balance object type from the result.
protected  List buildGroupList()
          This method builds group by attribute list used by balance searching
 int countPendingLedgerEntries(Account account)
          This method counts all approved pending ledger entries by account
 void delete(String documentHeaderId)
          Delete all pending entries for a given document
 void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
          Delete all pending entries based on the document approved code
 Iterator findApprovedPendingLedgerEntries()
          This method retrieves all approved pending ledger entries
 Collection findPendingEntries(Map fieldValues, boolean isApproved)
          Find Pending Entries
 Iterator findPendingLedgerEntries(Balance balance, boolean isApproved, boolean isConsolidated)
          This method retrieves all pending ledger entries for the given encumbrance
 Iterator findPendingLedgerEntries(Encumbrance encumbrance, boolean isApproved)
          This method retrieves all pending ledger entries for the given encumbrance
 Iterator findPendingLedgerEntriesForAccountBalance(Map fieldValues, boolean isApproved)
          This method retrieves all pending ledger entries that may belong to the given account balance record in the future
 Iterator findPendingLedgerEntriesForBalance(Map fieldValues, boolean isApproved)
          This method retrieves all pending ledger entries matching the given balance criteria
 Iterator findPendingLedgerEntriesForCashBalance(Map fieldValues, boolean isApproved)
          This method retrieves all pending ledger entries matching the given cash balance criteria
 Iterator findPendingLedgerEntriesForEncumbrance(Map fieldValues, boolean isApproved)
          This method retrieves all pending ledger entries that may belong to encumbrance table in the future
 Iterator findPendingLedgerEntriesForEntry(Map fieldValues, boolean isApproved)
          This method retrieves all pending ledger entries matching the given entry criteria
 Iterator findPendingLedgerEntrySummaryForAccountBalance(Map fieldValues, boolean isApproved)
          This method retrieves all pending ledger entries that may belong to the given account balance record in the future
 GeneralLedgerPendingEntry getByPrimaryId(String documentHeaderId, Integer transactionLedgerEntrySequenceNumber)
           
 Class getEntryClass()
          Gets the entryClass attribute.
protected  Object getEntryClassInstance()
           
 OptionsService getOptionsService()
           
 org.kuali.rice.kns.util.KualiDecimal getTransactionSummary(Collection universityFiscalYears, String chartOfAccountsCode, String accountNumber, Collection objectCodes, Collection balanceTypeCodes, boolean isDebit)
          Get summary of amounts in the pending entry table
 org.kuali.rice.kns.util.KualiDecimal getTransactionSummary(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, Collection objectTypeCodes, Collection balanceTypeCodes, String acctSufficientFundsFinObjCd, boolean isYearEnd)
          Get summary of amounts in the pending entry table
 org.kuali.rice.kns.util.KualiDecimal getTransactionSummary(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, Collection objectTypeCodes, Collection balanceTypeCodes, String acctSufficientFundsFinObjCd, boolean isDebit, boolean isYearEnd)
          Get summary of amounts in the pending entry table
 void save(GeneralLedgerPendingEntry generalLedgerPendingEntry)
           
 void setBalanceTypService(BalanceTypeService balanceTypService)
           
 void setOptionsService(OptionsService optionsService)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 
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
 

Field Detail

TRANSACTION_LEDGER_ENTRY_SEQUENCE_NUMBER

protected static final String TRANSACTION_LEDGER_ENTRY_SEQUENCE_NUMBER
See Also:
Constant Field Values

FINANCIAL_DOCUMENT_APPROVED_CODE

protected static final String FINANCIAL_DOCUMENT_APPROVED_CODE
See Also:
Constant Field Values

ACCOUNT_NUMBER

protected static final String ACCOUNT_NUMBER
See Also:
Constant Field Values

CHART_OF_ACCOUNTS_CODE

protected static final String CHART_OF_ACCOUNTS_CODE
See Also:
Constant Field Values

CHART_FINANCIAL_CASH_OBJECT_CODE

protected static final String CHART_FINANCIAL_CASH_OBJECT_CODE
See Also:
Constant Field Values

OBJECT_TYPE_FIN_OBJECT_TYPE_DEBITCREDIT_CD

protected static final String OBJECT_TYPE_FIN_OBJECT_TYPE_DEBITCREDIT_CD
See Also:
Constant Field Values
Constructor Detail

GeneralLedgerPendingEntryDaoOjb

public GeneralLedgerPendingEntryDaoOjb()
Method Detail

getTransactionSummary

public org.kuali.rice.kns.util.KualiDecimal getTransactionSummary(Integer universityFiscalYear,
                                                                  String chartOfAccountsCode,
                                                                  String accountNumber,
                                                                  Collection objectTypeCodes,
                                                                  Collection balanceTypeCodes,
                                                                  String acctSufficientFundsFinObjCd,
                                                                  boolean isYearEnd)
Description copied from interface: GeneralLedgerPendingEntryDao
Get summary of amounts in the pending entry table

Specified by:
getTransactionSummary in interface GeneralLedgerPendingEntryDao
Returns:
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#getTransactionSummary(java.lang.Integer, java.lang.String, java.lang.String, java.util.Collection, java.util.Collection, java.lang.String, boolean)

getTransactionSummary

public org.kuali.rice.kns.util.KualiDecimal getTransactionSummary(Integer universityFiscalYear,
                                                                  String chartOfAccountsCode,
                                                                  String accountNumber,
                                                                  Collection objectTypeCodes,
                                                                  Collection balanceTypeCodes,
                                                                  String acctSufficientFundsFinObjCd,
                                                                  boolean isDebit,
                                                                  boolean isYearEnd)
Description copied from interface: GeneralLedgerPendingEntryDao
Get summary of amounts in the pending entry table

Specified by:
getTransactionSummary in interface GeneralLedgerPendingEntryDao
Returns:
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#getTransactionSummary(java.lang.Integer, java.lang.String, java.lang.String, java.util.Collection, java.util.Collection, boolean, boolean)

getTransactionSummary

public org.kuali.rice.kns.util.KualiDecimal getTransactionSummary(Collection universityFiscalYears,
                                                                  String chartOfAccountsCode,
                                                                  String accountNumber,
                                                                  Collection objectCodes,
                                                                  Collection balanceTypeCodes,
                                                                  boolean isDebit)
Description copied from interface: GeneralLedgerPendingEntryDao
Get summary of amounts in the pending entry table

Specified by:
getTransactionSummary in interface GeneralLedgerPendingEntryDao
Returns:
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#getTransactionSummary(java.util.Collection, java.lang.String, java.lang.String, java.util.Collection, java.util.Collection, boolean)

getByPrimaryId

public GeneralLedgerPendingEntry getByPrimaryId(String documentHeaderId,
                                                Integer transactionLedgerEntrySequenceNumber)
Specified by:
getByPrimaryId in interface GeneralLedgerPendingEntryDao
Returns:
a pending ledger entry

save

public void save(GeneralLedgerPendingEntry generalLedgerPendingEntry)
Specified by:
save in interface GeneralLedgerPendingEntryDao

delete

public void delete(String documentHeaderId)
Description copied from interface: GeneralLedgerPendingEntryDao
Delete all pending entries for a given document

Specified by:
delete in interface GeneralLedgerPendingEntryDao

deleteByFinancialDocumentApprovedCode

public void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
Description copied from interface: GeneralLedgerPendingEntryDao
Delete all pending entries based on the document approved code

Specified by:
deleteByFinancialDocumentApprovedCode in interface GeneralLedgerPendingEntryDao

findApprovedPendingLedgerEntries

public Iterator findApprovedPendingLedgerEntries()
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all approved pending ledger entries

Specified by:
findApprovedPendingLedgerEntries in interface GeneralLedgerPendingEntryDao
Returns:
all approved pending ledger entries
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findApprovedPendingLedgerEntries()

countPendingLedgerEntries

public int countPendingLedgerEntries(Account account)
Description copied from interface: GeneralLedgerPendingEntryDao
This method counts all approved pending ledger entries by account

Specified by:
countPendingLedgerEntries in interface GeneralLedgerPendingEntryDao
Parameters:
account - the given account
Returns:
count of entries
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#countPendingLedgerEntries(org.kuali.kfs.coa.businessobject.Account)

findPendingLedgerEntries

public Iterator findPendingLedgerEntries(Encumbrance encumbrance,
                                         boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries for the given encumbrance

Specified by:
findPendingLedgerEntries in interface GeneralLedgerPendingEntryDao
Parameters:
encumbrance - the encumbrance entry in the GL_Encumbrance_T table
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries of the given encumbrance
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntries(org.kuali.kfs.gl.businessobject.Encumbrance, boolean)

findPendingLedgerEntries

public Iterator findPendingLedgerEntries(Balance balance,
                                         boolean isApproved,
                                         boolean isConsolidated)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries for the given encumbrance

Specified by:
findPendingLedgerEntries in interface GeneralLedgerPendingEntryDao
Parameters:
balance - the balance entry
isApproved - the flag that indicates whether the pending entries are approved or don't care
isConsolidated - consolidation option is applied or not
Returns:
all pending ledger entries of the given balance
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntries(org.kuali.kfs.gl.businessobject.Balance, boolean, boolean)

findPendingLedgerEntriesForEntry

public Iterator findPendingLedgerEntriesForEntry(Map fieldValues,
                                                 boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries matching the given entry criteria

Specified by:
findPendingLedgerEntriesForEntry in interface GeneralLedgerPendingEntryDao
Parameters:
fieldValues - the input fields and values
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries matching the given balance criteria
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntriesForEntry(java.util.Map, boolean)

findPendingLedgerEntriesForBalance

public Iterator findPendingLedgerEntriesForBalance(Map fieldValues,
                                                   boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries matching the given balance criteria

Specified by:
findPendingLedgerEntriesForBalance in interface GeneralLedgerPendingEntryDao
Parameters:
fieldValues - the input fields and values
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries matching the given balance criteria
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntriesForBalance(java.util.Map, boolean)

findPendingLedgerEntriesForCashBalance

public Iterator findPendingLedgerEntriesForCashBalance(Map fieldValues,
                                                       boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries matching the given cash balance criteria

Specified by:
findPendingLedgerEntriesForCashBalance in interface GeneralLedgerPendingEntryDao
Parameters:
fieldValues - the input fields and values
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries matching the given cash balance criteria
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntriesForCashBalance(java.util.Map, boolean)

findPendingLedgerEntriesForEncumbrance

public Iterator findPendingLedgerEntriesForEncumbrance(Map fieldValues,
                                                       boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries that may belong to encumbrance table in the future

Specified by:
findPendingLedgerEntriesForEncumbrance in interface GeneralLedgerPendingEntryDao
Parameters:
fieldValues - the input fields and values
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries that may belong to encumbrance table
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntriesForEncumbrance(Map, boolean)

buildCriteriaToExcludeFundBalance

protected org.apache.ojb.broker.query.Criteria buildCriteriaToExcludeFundBalance()
This method creates Criteria that exclude the fund balance object type from the result.

Returns:
Criteria

findPendingLedgerEntriesForAccountBalance

public Iterator findPendingLedgerEntriesForAccountBalance(Map fieldValues,
                                                          boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries that may belong to the given account balance record in the future

Specified by:
findPendingLedgerEntriesForAccountBalance in interface GeneralLedgerPendingEntryDao
Parameters:
fieldValues - the input fields and values
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries that may belong to encumbrance table
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntriesForAccountBalance(java.util.Map, boolean, boolean)

findPendingLedgerEntrySummaryForAccountBalance

public Iterator findPendingLedgerEntrySummaryForAccountBalance(Map fieldValues,
                                                               boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
This method retrieves all pending ledger entries that may belong to the given account balance record in the future

Specified by:
findPendingLedgerEntrySummaryForAccountBalance in interface GeneralLedgerPendingEntryDao
Parameters:
fieldValues - the input fields and values
isApproved - the flag that indicates whether the pending entries are approved or don't care
Returns:
all pending ledger entries that may belong to encumbrance table
See Also:
org.kuali.module.gl.dao.GeneralLedgerPendingEntryDao#findPendingLedgerEntrySummaryForAccountBalance(java.util.Map, boolean, boolean)

buildAttributeList

protected List buildAttributeList()
This method builds the atrribute list used by balance searching

Returns:
List an attribute list

buildGroupList

protected List buildGroupList()
This method builds group by attribute list used by balance searching

Returns:
List an group by attribute list

addStatusCode

protected void addStatusCode(org.apache.ojb.broker.query.Criteria criteria,
                             boolean isOnlyApproved)
add the status code into the given criteria. The status code can be categorized into approved and all.

Parameters:
criteria - the given criteria
isApproved - the flag that indictates if only approved status code can be added into the given searach criteria

buildApprovalCodeList

protected List buildApprovalCodeList()
build a status code list including the legal approval codes

Returns:
an approval code list

buildCriteriaFromMap

public org.apache.ojb.broker.query.Criteria buildCriteriaFromMap(Map fieldValues,
                                                                 Object businessObject)
This method builds an OJB query criteria based on the input field map

Parameters:
fieldValues - the input field map
businessObject - the given business object
Returns:
an OJB query criteria

findPendingEntries

public Collection findPendingEntries(Map fieldValues,
                                     boolean isApproved)
Description copied from interface: GeneralLedgerPendingEntryDao
Find Pending Entries

Specified by:
findPendingEntries in interface GeneralLedgerPendingEntryDao
Returns:

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

getEntryClass

public Class getEntryClass()
Gets the entryClass attribute.

Returns:
Returns the entryClass.

getEntryClassInstance

protected Object getEntryClassInstance()

setBalanceTypService

public void setBalanceTypService(BalanceTypeService balanceTypService)

getOptionsService

public OptionsService getOptionsService()

setOptionsService

public void setOptionsService(OptionsService optionsService)


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