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