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

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

public class HoldingHistoryDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements HoldingHistoryDao


Field Summary
protected static org.apache.log4j.Logger LOG
           
protected  MonthEndDateService monthEndDateService
           
protected  SecurityDao securityDao
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HoldingHistoryDaoOjb()
           
 
Method Summary
 List<HoldingHistory> getHoldingHistory(String kemid, org.kuali.rice.kns.util.KualiInteger medId)
          Gets HoldingHistory
 List<HoldingHistory> getHoldingHistoryByKemid(String kemid)
          Gets HoldingHistory records
 List<HoldingHistory> getHoldingHistoryByKemidIdAndMonthEndIdAndIpInd(String kemid, org.kuali.rice.kns.util.KualiInteger monthEndId, String ipInd)
          Gets a list of HoldingHistory by kemid, medId, ipInd and with units > 0
protected  Collection<HoldingHistory> getHoldingHistoryForBlance(FeeMethod feeMethod)
          Prepares the criteria and selects the records from END_HLDG_HIST_T table
 BigDecimal getHoldingHistoryTotalHoldingMarketValue(FeeMethod feeMethod)
          Calculates the total Holding market value based on FEE_BAL_TYP_CD = AMV OR MMV
 BigDecimal getHoldingHistoryTotalHoldingUnits(FeeMethod feeMethod)
          Calculates the total Holding Units based on FEE_BAL_TYP_CD = AU OR MU
protected  MonthEndDateService getMonthEndDateService()
          Gets the monthEndDateService attribute.
protected  Collection getSecurityClassCodes(String feeMethodCode)
          Gets the security codes for a given securityClassCode in END_FEE_CLS_CD_T table
protected  SecurityDao getSecurityDao()
          Gets the securityDao attribute.
protected  Collection getSecurityIds(String feeMethodCode)
          Gets the security ids for a given securityClassCode in END_FEE_SEC_T table
 BigDecimal getSumOfHoldginHistoryAttribute(String attributeName, String kemid, org.kuali.rice.kns.util.KualiInteger medId, String securityId, String ipInd)
          Gets the sum of the specified attribute values
 void setMonthEndDateService(MonthEndDateService monthEndDateService)
          Sets the monthEndDateService attribute value.
 void setSecurityDao(SecurityDao securityDao)
          Sets the securityDao attribute value.
 
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

monthEndDateService

protected MonthEndDateService monthEndDateService

securityDao

protected SecurityDao securityDao
Constructor Detail

HoldingHistoryDaoOjb

public HoldingHistoryDaoOjb()
Method Detail

getHoldingHistoryForBlance

protected Collection<HoldingHistory> getHoldingHistoryForBlance(FeeMethod feeMethod)
Prepares the criteria and selects the records from END_HLDG_HIST_T table


getSecurityClassCodes

protected Collection getSecurityClassCodes(String feeMethodCode)
Gets the security codes for a given securityClassCode in END_FEE_CLS_CD_T table

Returns:
securityCodes

getSecurityIds

protected Collection getSecurityIds(String feeMethodCode)
Gets the security ids for a given securityClassCode in END_FEE_SEC_T table

Returns:
securityIds

getHoldingHistoryTotalHoldingUnits

public BigDecimal getHoldingHistoryTotalHoldingUnits(FeeMethod feeMethod)
Description copied from interface: HoldingHistoryDao
Calculates the total Holding Units based on FEE_BAL_TYP_CD = AU OR MU

Specified by:
getHoldingHistoryTotalHoldingUnits in interface HoldingHistoryDao
Parameters:
feeMethod - feeMethod object
Returns:
totalHoldingUnits
See Also:
HoldingHistoryDao.getHoldingHistoryTotalHoldingUnits(FeeMethod)

getHoldingHistoryTotalHoldingMarketValue

public BigDecimal getHoldingHistoryTotalHoldingMarketValue(FeeMethod feeMethod)
Description copied from interface: HoldingHistoryDao
Calculates the total Holding market value based on FEE_BAL_TYP_CD = AMV OR MMV

Specified by:
getHoldingHistoryTotalHoldingMarketValue in interface HoldingHistoryDao
Parameters:
feeMethod - feeMethod object
Returns:
totalHoldingMarketValue
See Also:
HoldingHistoryDao.getHoldingHistoryTotalHoldingMarketValue(FeeMethod)

getHoldingHistory

public List<HoldingHistory> getHoldingHistory(String kemid,
                                              org.kuali.rice.kns.util.KualiInteger medId)
Description copied from interface: HoldingHistoryDao
Gets HoldingHistory

Specified by:
getHoldingHistory in interface HoldingHistoryDao
Returns:
See Also:
org.kuali.kfs.module.endow.dataaccess.HoldingHistoryDao#getHoldingHistory(java.lang.String, java.lang.String)

getHoldingHistoryByKemid

public List<HoldingHistory> getHoldingHistoryByKemid(String kemid)
Description copied from interface: HoldingHistoryDao
Gets HoldingHistory records

Specified by:
getHoldingHistoryByKemid in interface HoldingHistoryDao
Returns:
List
See Also:
HoldingHistoryDao.getHoldingHistoryByKemid(java.lang.String)

getHoldingHistoryByKemidIdAndMonthEndIdAndIpInd

public List<HoldingHistory> getHoldingHistoryByKemidIdAndMonthEndIdAndIpInd(String kemid,
                                                                            org.kuali.rice.kns.util.KualiInteger monthEndId,
                                                                            String ipInd)
Description copied from interface: HoldingHistoryDao
Gets a list of HoldingHistory by kemid, medId, ipInd and with units > 0

Specified by:
getHoldingHistoryByKemidIdAndMonthEndIdAndIpInd in interface HoldingHistoryDao
Returns:

getSumOfHoldginHistoryAttribute

public BigDecimal getSumOfHoldginHistoryAttribute(String attributeName,
                                                  String kemid,
                                                  org.kuali.rice.kns.util.KualiInteger medId,
                                                  String securityId,
                                                  String ipInd)
Gets the sum of the specified attribute values

Specified by:
getSumOfHoldginHistoryAttribute in interface HoldingHistoryDao
Parameters:
kemid -
medId -
securityId -
ipInd -
attributeName -
Returns:

getMonthEndDateService

protected MonthEndDateService getMonthEndDateService()
Gets the monthEndDateService attribute.

Returns:
Returns the monthEndDateService.

setMonthEndDateService

public void setMonthEndDateService(MonthEndDateService monthEndDateService)
Sets the monthEndDateService attribute value.

Parameters:
monthEndDateService - The monthEndDateService to set.

getSecurityDao

protected SecurityDao getSecurityDao()
Gets the securityDao attribute.

Returns:
Returns the securityDao.

setSecurityDao

public void setSecurityDao(SecurityDao securityDao)
Sets the securityDao attribute value.

Parameters:
securityDao - The securityDao to set.


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