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

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

public class CurrentTaxLotBalanceDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements CurrentTaxLotBalanceDao


Field Summary
protected static org.apache.log4j.Logger LOG
           
protected  SecurityDao securityDao
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CurrentTaxLotBalanceDaoOjb()
           
 
Method Summary
 Collection<CurrentTaxLotBalance> getAllCurrentTaxLotBalanceEntriesForSecurity(String securityId)
          Gets all records for the Security in END_CURR_TAX_LOT_BAL_T.
protected  Collection<CurrentTaxLotBalance> getCurrentTaxLotBalances(FeeMethod feeMethod)
          Prepares the criteria and selects the records from END_CRNT_TAX_LOT_BAL_T table
 BigDecimal getCurrentTaxLotBalanceTotalHoldingMarketValue(FeeMethod feeMethod)
          Calculates the total Holding market value based on FEE_BAL_TYP_CD = CMV
 BigDecimal getCurrentTaxLotBalanceTotalHoldingUnits(FeeMethod feeMethod)
          Calculates the total Holding market value based on FEE_BAL_TYP_CD = CU
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
 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

securityDao

protected SecurityDao securityDao
Constructor Detail

CurrentTaxLotBalanceDaoOjb

public CurrentTaxLotBalanceDaoOjb()
Method Detail

getAllCurrentTaxLotBalanceEntriesForSecurity

public Collection<CurrentTaxLotBalance> getAllCurrentTaxLotBalanceEntriesForSecurity(String securityId)
Description copied from interface: CurrentTaxLotBalanceDao
Gets all records for the Security in END_CURR_TAX_LOT_BAL_T.

Specified by:
getAllCurrentTaxLotBalanceEntriesForSecurity in interface CurrentTaxLotBalanceDao
Parameters:
securityId - the id of the security for which we retrieve the entries
Returns:
all records for the Security in END_CURR_TAX_LOT_BAL_T
See Also:
CurrentTaxLotBalanceDao.getAllCurrentTaxLotBalanceEntriesForSecurity(java.lang.String)

getCurrentTaxLotBalances

protected Collection<CurrentTaxLotBalance> getCurrentTaxLotBalances(FeeMethod feeMethod)
Prepares the criteria and selects the records from END_CRNT_TAX_LOT_BAL_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

getCurrentTaxLotBalanceTotalHoldingUnits

public BigDecimal getCurrentTaxLotBalanceTotalHoldingUnits(FeeMethod feeMethod)
Description copied from interface: CurrentTaxLotBalanceDao
Calculates the total Holding market value based on FEE_BAL_TYP_CD = CU

Specified by:
getCurrentTaxLotBalanceTotalHoldingUnits in interface CurrentTaxLotBalanceDao
Parameters:
feeMethod - feeMethod object
Returns:
totalHoldingUnits
See Also:
org.kuali.kfs.module.endow.dataaccess.CurrentTaxLotBalanceDao#getCurrentTaxLogBalanceTotalHoldingMarkeValue(FeeMethod)

getCurrentTaxLotBalanceTotalHoldingMarketValue

public BigDecimal getCurrentTaxLotBalanceTotalHoldingMarketValue(FeeMethod feeMethod)
Description copied from interface: CurrentTaxLotBalanceDao
Calculates the total Holding market value based on FEE_BAL_TYP_CD = CMV

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

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.