if (!ec2OnDemandPricing.getPricePerHour().equals(ec2OnDemandPricingEntity.getHourlyPrice())) ec2OnDemandPricingEntity.setHourlyPrice(ec2OnDemandPricing.getPricePerHour()); ec2OnDemandPricingDao.saveAndRefresh(ec2OnDemandPricingEntity); ec2OnDemandPricingKey.getRegionName(), ec2OnDemandPricingKey.getInstanceType(), ec2OnDemandPricing.getPricePerHour().toPlainString(), oldHourlyPriceAsString); ec2OnDemandPricingEntity.setRegionName(ec2OnDemandPricingKey.getRegionName()); ec2OnDemandPricingEntity.setInstanceType(ec2OnDemandPricingKey.getInstanceType()); ec2OnDemandPricingEntity.setHourlyPrice(ec2OnDemandPricing.getPricePerHour()); ec2OnDemandPricingDao.saveAndRefresh(ec2OnDemandPricingEntity); ec2OnDemandPricingKey.getInstanceType(), ec2OnDemandPricing.getPricePerHour().toPlainString());
if (!ec2OnDemandPricing.getPricePerHour().equals(ec2OnDemandPricingEntity.getHourlyPrice())) ec2OnDemandPricingEntity.setHourlyPrice(ec2OnDemandPricing.getPricePerHour()); ec2OnDemandPricingDao.saveAndRefresh(ec2OnDemandPricingEntity); ec2OnDemandPricingKey.getRegionName(), ec2OnDemandPricingKey.getInstanceType(), ec2OnDemandPricing.getPricePerHour().toPlainString(), oldHourlyPriceAsString); ec2OnDemandPricingEntity.setRegionName(ec2OnDemandPricingKey.getRegionName()); ec2OnDemandPricingEntity.setInstanceType(ec2OnDemandPricingKey.getInstanceType()); ec2OnDemandPricingEntity.setHourlyPrice(ec2OnDemandPricing.getPricePerHour()); ec2OnDemandPricingDao.saveAndRefresh(ec2OnDemandPricingEntity); ec2OnDemandPricingKey.getInstanceType(), ec2OnDemandPricing.getPricePerHour().toPlainString());
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { Ec2OnDemandPricingKey theEc2OnDemandPricingKey; theEc2OnDemandPricingKey = this.getEc2OnDemandPricingKey(); strategy.appendField(locator, this, "ec2OnDemandPricingKey", buffer, theEc2OnDemandPricingKey, (this.ec2OnDemandPricingKey!= null)); } { BigDecimal thePricePerHour; thePricePerHour = this.getPricePerHour(); strategy.appendField(locator, this, "pricePerHour", buffer, thePricePerHour, (this.pricePerHour!= null)); } { String theSku; theSku = this.getSku(); strategy.appendField(locator, this, "sku", buffer, theSku, (this.sku!= null)); } return buffer; }
lhsPricePerHour = this.getPricePerHour(); BigDecimal rhsPricePerHour; rhsPricePerHour = that.getPricePerHour(); if (!strategy.equals(LocatorUtils.property(thisLocator, "pricePerHour", lhsPricePerHour), LocatorUtils.property(thatLocator, "pricePerHour", rhsPricePerHour), lhsPricePerHour, rhsPricePerHour, (this.pricePerHour!= null), (that.pricePerHour!= null))) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { Ec2OnDemandPricingKey theEc2OnDemandPricingKey; theEc2OnDemandPricingKey = this.getEc2OnDemandPricingKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ec2OnDemandPricingKey", theEc2OnDemandPricingKey), currentHashCode, theEc2OnDemandPricingKey, (this.ec2OnDemandPricingKey!= null)); } { BigDecimal thePricePerHour; thePricePerHour = this.getPricePerHour(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pricePerHour", thePricePerHour), currentHashCode, thePricePerHour, (this.pricePerHour!= null)); } { String theSku; theSku = this.getSku(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sku", theSku), currentHashCode, theSku, (this.sku!= null)); } return currentHashCode; }
if (pricePerHourShouldBeCopiedAndSet == Boolean.TRUE) { BigDecimal sourcePricePerHour; sourcePricePerHour = this.getPricePerHour(); BigDecimal copyPricePerHour = ((BigDecimal) strategy.copy(LocatorUtils.property(locator, "pricePerHour", sourcePricePerHour), sourcePricePerHour, (this.pricePerHour!= null))); copy.setPricePerHour(copyPricePerHour);