org.kuali.kfs.module.endow.dataaccess.impl
Class TransactionArchiveDaoOjb

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.module.endow.dataaccess.impl.TransactionArchiveDaoOjb
All Implemented Interfaces:
TransactionArchiveDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class TransactionArchiveDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements TransactionArchiveDao


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
TransactionArchiveDaoOjb()
           
 
Method Summary
 Collection<TransactionArchive> getAllTransactionArchives()
          Gets a collection of records from END_TRAN_ARCHV_T table
 Collection<TransactionArchive> getAllTransactionArchives(Date postedDate)
          Gets a collection of records from END_TRAN_ARCHV_T table.
 TransactionArchive getByPrimaryKey(String documentNumber, int lineNumber, String lineTypeCode)
          Gets a transactionArchive by primary keys.
protected  Collection getETranCodes(String feeMethodCode)
          Gets the document Type codes for a given feeMethodCode in END_FEE_TRAN_DOC_TYP_T table
 List<TransactionArchive> getTransactionArchiveByKemidsAndPostedDate(String kemid, String endowmentOption, Date beginningDate, Date endingDate, String closedIndicator, String transactionSubType)
          Gets a collection of TransactionArchive by kemids and posted dates
 List<TransactionArchive> getTransactionArchivesByKemid(String kemid, Date beginningDate, Date endingDate)
          Gets a collection of TransactionArchive by kemid and beginning and ending dates
 long getTransactionArchivesCountByBothIncomeAndPrincipal(FeeMethod feeMethod)
          Gets a count of total number of records from END_TRAN_ARCHV_T table
 long getTransactionArchivesCountByDocumentTypeName(String feeMethodCode, Date transactionPostedDate)
          Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM
 long getTransactionArchivesCountByDocumentTypeNameAndETranCode(String feeMethodCode, Date transactionPostedDate)
          Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM and TRAN_ETRAN_CD
 long getTransactionArchivesCountByETranCode(String feeMethodCode, Date transactionPostedDate)
          Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM
 long getTransactionArchivesCountByIncomeOrPrincipal(String incomeOrPrincipalIndicator)
          Gets a count of total number of records from END_TRAN_ARCHV_T table for a given TRAN_IP_IND_CD
 long getTransactionArchivesCountForTransactions(FeeMethod feeMethod)
          Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM
protected  Collection<TransactionArchive> getTransactionArchivesForTransactions(FeeMethod feeMethod)
          Prepares the criteria to select the records from END_TRAN_ARCHV_T table
 HashMap<String,BigDecimal> getTransactionArchivesIncomeAndPrincipalCashAmountForTransactions(FeeMethod feeMethod)
          Gets Income and principal cash amount from the selected records from END_TRAN_ARCHV_T table
 BigDecimal getTransactionArchivesIncomeCashAmountForTransactions(FeeMethod feeMethod)
          Gets principal income amount from the selected records from END_TRAN_ARCHV_T table
 BigDecimal getTransactionArchivesPrincipalCashAmountForTransactions(FeeMethod feeMethod)
          Gets principal cash amount from the selected records from END_TRAN_ARCHV_T table
 BigDecimal getTransactionArchivesTotalCashActivity(String kemid, String securityId)
          Gets total cash activity by adding income cash and principal cash amount from the selected records from END_TRAN_ARCHV_T table
protected  Collection getTypeCodes(String feeMethodCode)
          Gets the document Type codes for a given feeMethodCode in END_FEE_TRAN_DOC_TYP_T table
 
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

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

TransactionArchiveDaoOjb

public TransactionArchiveDaoOjb()
Method Detail

getAllTransactionArchives

public Collection<TransactionArchive> getAllTransactionArchives(Date postedDate)
Description copied from interface: TransactionArchiveDao
Gets a collection of records from END_TRAN_ARCHV_T table. The data is sorted by DOC_TYP_NM, TRAN_SUB_TYP_CD, TRAN_IP_IND_CD, TRAN_KEMID, TRAN_ETRAN_CD

Specified by:
getAllTransactionArchives in interface TransactionArchiveDao
Returns:
transactionArchives

getAllTransactionArchives

public Collection<TransactionArchive> getAllTransactionArchives()
Description copied from interface: TransactionArchiveDao
Gets a collection of records from END_TRAN_ARCHV_T table

Specified by:
getAllTransactionArchives in interface TransactionArchiveDao
Returns:
transactionArchives

getByPrimaryKey

public TransactionArchive getByPrimaryKey(String documentNumber,
                                          int lineNumber,
                                          String lineTypeCode)
Description copied from interface: TransactionArchiveDao
Gets a transactionArchive by primary keys.

Specified by:
getByPrimaryKey in interface TransactionArchiveDao
Returns:
a transactionArchive
See Also:
TransactionArchiveDao.getByPrimaryKey(String, int, String)

getTransactionArchivesForTransactions

protected Collection<TransactionArchive> getTransactionArchivesForTransactions(FeeMethod feeMethod)
Prepares the criteria to select the records from END_TRAN_ARCHV_T table


getTransactionArchivesCountForTransactions

public long getTransactionArchivesCountForTransactions(FeeMethod feeMethod)
Description copied from interface: TransactionArchiveDao
Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM

Specified by:
getTransactionArchivesCountForTransactions in interface TransactionArchiveDao
Parameters:
feeMethod - feeMethod object
Returns:
count of transactionArhives matching the criteria
See Also:
TransactionArchiveDao.getTransactionArchivesCountForTransactions(FeeMethod)

getTransactionArchivesIncomeCashAmountForTransactions

public BigDecimal getTransactionArchivesIncomeCashAmountForTransactions(FeeMethod feeMethod)
Description copied from interface: TransactionArchiveDao
Gets principal income amount from the selected records from END_TRAN_ARCHV_T table

Specified by:
getTransactionArchivesIncomeCashAmountForTransactions in interface TransactionArchiveDao
Parameters:
feeMethod - feeMethod object
Returns:
incomeCashAmount of transactionArhives matching the criteria
See Also:
TransactionArchiveDao.getTransactionArchivesIncomeCashAmountForTransactions(FeeMethod)

getTransactionArchivesPrincipalCashAmountForTransactions

public BigDecimal getTransactionArchivesPrincipalCashAmountForTransactions(FeeMethod feeMethod)
Description copied from interface: TransactionArchiveDao
Gets principal cash amount from the selected records from END_TRAN_ARCHV_T table

Specified by:
getTransactionArchivesPrincipalCashAmountForTransactions in interface TransactionArchiveDao
Parameters:
feeMethod - feeMethod object
Returns:
incomeCashAmount of transactionArhives matching the criteria
See Also:
TransactionArchiveDao.getTransactionArchivesPrincipalCashAmountForTransactions(FeeMethod)

getTransactionArchivesIncomeAndPrincipalCashAmountForTransactions

public HashMap<String,BigDecimal> getTransactionArchivesIncomeAndPrincipalCashAmountForTransactions(FeeMethod feeMethod)
Description copied from interface: TransactionArchiveDao
Gets Income and principal cash amount from the selected records from END_TRAN_ARCHV_T table

Specified by:
getTransactionArchivesIncomeAndPrincipalCashAmountForTransactions in interface TransactionArchiveDao
Parameters:
feeMethod - feeMethod object
Returns:
Map with both income and principal cash amount of records matching the criteria
See Also:
TransactionArchiveDao.getTransactionArchivesIncomeAndPrincipalCashAmountForTransactions(FeeMethod)

getTransactionArchivesCountByDocumentTypeName

public long getTransactionArchivesCountByDocumentTypeName(String feeMethodCode,
                                                          Date transactionPostedDate)
Description copied from interface: TransactionArchiveDao
Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM

Specified by:
getTransactionArchivesCountByDocumentTypeName in interface TransactionArchiveDao
Returns:
count of transactionArhives matching the passed in parameters
See Also:
org.kuali.kfs.module.endow.dataaccess.TransactionArchiveDao#getTransactionArchivesCountByDocumentTypeName(String, long)

getTypeCodes

protected Collection getTypeCodes(String feeMethodCode)
Gets the document Type codes for a given feeMethodCode in END_FEE_TRAN_DOC_TYP_T table

Returns:
typeCodes

getTransactionArchivesCountByETranCode

public long getTransactionArchivesCountByETranCode(String feeMethodCode,
                                                   Date transactionPostedDate)
Description copied from interface: TransactionArchiveDao
Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM

Specified by:
getTransactionArchivesCountByETranCode in interface TransactionArchiveDao
Returns:
count of transactionArhives matching the passed in parameters
See Also:
org.kuali.kfs.module.endow.dataaccess.TransactionArchiveDao#getTransactionArchivesCountByETranCode(String, long)

getETranCodes

protected Collection getETranCodes(String feeMethodCode)
Gets the document Type codes for a given feeMethodCode in END_FEE_TRAN_DOC_TYP_T table

Returns:
typeCodes

getTransactionArchivesCountByDocumentTypeNameAndETranCode

public long getTransactionArchivesCountByDocumentTypeNameAndETranCode(String feeMethodCode,
                                                                      Date transactionPostedDate)
Description copied from interface: TransactionArchiveDao
Gets a count of total number of records from END_TRAN_ARCHV_T table for a given DOC_TYP_NM and TRAN_ETRAN_CD

Specified by:
getTransactionArchivesCountByDocumentTypeNameAndETranCode in interface TransactionArchiveDao
Returns:
count of transactionArhives matching the passed in parameters
See Also:
org.kuali.kfs.module.endow.dataaccess.TransactionArchiveDao#getTransactionArchivesCountByDocumentTypeNameAndETranCode(String, long)

getTransactionArchivesCountByIncomeOrPrincipal

public long getTransactionArchivesCountByIncomeOrPrincipal(String incomeOrPrincipalIndicator)
Description copied from interface: TransactionArchiveDao
Gets a count of total number of records from END_TRAN_ARCHV_T table for a given TRAN_IP_IND_CD

Specified by:
getTransactionArchivesCountByIncomeOrPrincipal in interface TransactionArchiveDao
Returns:
count of transactionArhives matching the passed in parameter
See Also:
TransactionArchiveDao.getTransactionArchivesCountByIncomeOrPrincipal(String)

getTransactionArchivesCountByBothIncomeAndPrincipal

public long getTransactionArchivesCountByBothIncomeAndPrincipal(FeeMethod feeMethod)
Description copied from interface: TransactionArchiveDao
Gets a count of total number of records from END_TRAN_ARCHV_T table

Specified by:
getTransactionArchivesCountByBothIncomeAndPrincipal in interface TransactionArchiveDao
Returns:
count of transactionArhives based on the conditions in feeMethod object
See Also:
org.kuali.kfs.module.endow.dataaccess.TransactionArchiveDao#getTransactionArchivesCountByBothIncomeAndPrincipal()

getTransactionArchivesTotalCashActivity

public BigDecimal getTransactionArchivesTotalCashActivity(String kemid,
                                                          String securityId)
Description copied from interface: TransactionArchiveDao
Gets total cash activity by adding income cash and principal cash amount from the selected records from END_TRAN_ARCHV_T table

Specified by:
getTransactionArchivesTotalCashActivity in interface TransactionArchiveDao
Returns:
totalCashActivity
See Also:
org.kuali.kfs.module.endow.dataaccess.TransactionArchiveDao#getTransactionArchivesTotalCashActivity(String)

getTransactionArchiveByKemidsAndPostedDate

public List<TransactionArchive> getTransactionArchiveByKemidsAndPostedDate(String kemid,
                                                                           String endowmentOption,
                                                                           Date beginningDate,
                                                                           Date endingDate,
                                                                           String closedIndicator,
                                                                           String transactionSubType)
Description copied from interface: TransactionArchiveDao
Gets a collection of TransactionArchive by kemids and posted dates

Specified by:
getTransactionArchiveByKemidsAndPostedDate in interface TransactionArchiveDao
Returns:
See Also:
TransactionArchiveDao.getTransactionArchiveByKemidsAndPostedDate(java.lang.String, java.lang.String, java.util.Date, java.util.Date, java.lang.String, java.lang.String)

getTransactionArchivesByKemid

public List<TransactionArchive> getTransactionArchivesByKemid(String kemid,
                                                              Date beginningDate,
                                                              Date endingDate)
Description copied from interface: TransactionArchiveDao
Gets a collection of TransactionArchive by kemid and beginning and ending dates

Specified by:
getTransactionArchivesByKemid in interface TransactionArchiveDao
Returns:
List
See Also:
TransactionArchiveDao.getTransactionArchivesByKemid(java.lang.String, java.util.Date, java.util.Date)


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