package gw.lob.bop.rating uses java.util.Date uses gw.api.effdate.EffDatedUtil uses entity.windowed.BusinessOwnersCovVersionList uses gw.financials.PolicyPeriodFXRateCache uses gw.pl.persistence.core.Key uses java.util.List @Export class BOPCovCostData extends BOPCostData { protected var _covID : Key construct(effDate : Date, expDate : Date, stateArg : Jurisdiction, covID : Key) { super(effDate, expDate, stateArg) assertKeyType(covID, BusinessOwnersCov) init(covID) } construct(effDate : Date, expDate : Date, c : Currency, rateCache : PolicyPeriodFXRateCache, stateArg : Jurisdiction, covID : Key) { super(effDate, expDate, c, rateCache, stateArg) assertKeyType(covID, BusinessOwnersCov) init(covID) } construct(cost : BOPCovCost) { super(cost) init(cost.BusinessOwnersCov.FixedId) } construct(cost : BOPCovCost, rateCache : PolicyPeriodFXRateCache) { super(cost, rateCache) init(cost.BusinessOwnersCov.FixedId) } private function init(covID : Key) { _covID = covID } override function setSpecificFieldsOnCost(line : BOPLine, cost : BOPCovCost) { super.setSpecificFieldsOnCost( line, cost ) cost.setFieldValue("BusinessOwnersCov", _covID) } override function getVersionedCosts(line : BOPLine) : List { var covVL = EffDatedUtil.createVersionList( line.Branch, _covID ) as BusinessOwnersCovVersionList return covVL.Costs } protected override property get KeyValues() : List { return {_covID} } }