package gw.lob.im.rating.ce uses gw.pl.persistence.core.effdate.EffDatedVersionList uses entity.windowed.ContrEquipPartCovVersionList uses gw.api.effdate.EffDatedUtil uses gw.lob.im.rating.IMCostData uses java.util.Date uses gw.financials.PolicyPeriodFXRateCache uses java.util.List uses gw.pl.persistence.core.Key @Export class ContractorsEquipPartCovCostData extends IMCostData { private var _covID : Key private var _partID : Key construct(effDate : Date, expDate : Date, covID : Key, partID : Key) { super(effDate, expDate) assertKeyType(covID, ContrEquipPartCov) assertKeyType(partID, ContractorsEquipPart) init(covID, partID) } construct(effDate : Date, expDate : Date, c : Currency, rateCache : PolicyPeriodFXRateCache, covID : Key, partID : Key) { super(effDate, expDate, c, rateCache) assertKeyType(covID, ContrEquipPartCov) assertKeyType(partID, ContractorsEquipPart) init(covID, partID) } private function init(covID : Key, partID : Key) { _covID = covID _partID = partID } override function setSpecificFieldsOnCost(line : InlandMarineLine, cost : ContrEquipPartCovCost) { super.setSpecificFieldsOnCost(line, cost) cost.setFieldValue("ContrEquipPartCov", _covID) cost.setFieldValue("ContractorsEquipPart", _partID) } override function getVersionedCosts(line : InlandMarineLine) : List { var covVL = EffDatedUtil.createVersionList(line.Branch, _covID) as ContrEquipPartCovVersionList return covVL.Costs } override property get KeyValues() : List { return {_covID} } }