/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.masterdb.security.hibernate.bond; import java.util.Map; import org.joda.beans.Bean; import org.joda.beans.BeanBuilder; import org.joda.beans.BeanDefinition; import org.joda.beans.JodaBeanUtils; import org.joda.beans.MetaProperty; import org.joda.beans.Property; import org.joda.beans.PropertyDefinition; import org.joda.beans.impl.direct.DirectBeanBuilder; import org.joda.beans.impl.direct.DirectMetaProperty; import org.joda.beans.impl.direct.DirectMetaPropertyMap; import com.opengamma.financial.security.bond.BondSecurity; import com.opengamma.masterdb.security.hibernate.BusinessDayConventionBean; import com.opengamma.masterdb.security.hibernate.CurrencyBean; import com.opengamma.masterdb.security.hibernate.DayCountBean; import com.opengamma.masterdb.security.hibernate.ExpiryBean; import com.opengamma.masterdb.security.hibernate.FrequencyBean; import com.opengamma.masterdb.security.hibernate.SecurityBean; import com.opengamma.masterdb.security.hibernate.ZonedDateTimeBean; /** * A Hibernate bean representation of {@link BondSecurity}. */ @BeanDefinition public class BondSecurityBean extends SecurityBean { @PropertyDefinition private BondType _bondType; @PropertyDefinition private String _issuerName; @PropertyDefinition private IssuerTypeBean _issuerType; @PropertyDefinition private String _issuerDomicile; @PropertyDefinition private MarketBean _market; @PropertyDefinition private CurrencyBean _currency; @PropertyDefinition private YieldConventionBean _yieldConvention; @PropertyDefinition private GuaranteeTypeBean _guaranteeType; @PropertyDefinition private ExpiryBean _lastTradeDate; @PropertyDefinition private CouponTypeBean _couponType; @PropertyDefinition private double _couponRate; @PropertyDefinition private FrequencyBean _couponFrequency; @PropertyDefinition private DayCountBean _dayCountConvention; @PropertyDefinition private BusinessDayConventionBean _businessDayConvention; @PropertyDefinition private ZonedDateTimeBean _announcementDate; @PropertyDefinition private ZonedDateTimeBean _interestAccrualDate; @PropertyDefinition private ZonedDateTimeBean _settlementDate; @PropertyDefinition private ZonedDateTimeBean _firstCouponDate; @PropertyDefinition private Double _issuancePrice; @PropertyDefinition private double _totalAmountIssued; @PropertyDefinition private double _minimumAmount; @PropertyDefinition private double _minimumIncrement; @PropertyDefinition private double _parAmount; @PropertyDefinition private double _redemptionValue; //------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF /** * The meta-bean for {@code BondSecurityBean}. * @return the meta-bean, not null */ public static BondSecurityBean.Meta meta() { return BondSecurityBean.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(BondSecurityBean.Meta.INSTANCE); } @Override public BondSecurityBean.Meta metaBean() { return BondSecurityBean.Meta.INSTANCE; } //----------------------------------------------------------------------- /** * Gets the bondType. * @return the value of the property */ public BondType getBondType() { return _bondType; } /** * Sets the bondType. * @param bondType the new value of the property */ public void setBondType(BondType bondType) { this._bondType = bondType; } /** * Gets the the {@code bondType} property. * @return the property, not null */ public final Property<BondType> bondType() { return metaBean().bondType().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the issuerName. * @return the value of the property */ public String getIssuerName() { return _issuerName; } /** * Sets the issuerName. * @param issuerName the new value of the property */ public void setIssuerName(String issuerName) { this._issuerName = issuerName; } /** * Gets the the {@code issuerName} property. * @return the property, not null */ public final Property<String> issuerName() { return metaBean().issuerName().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the issuerType. * @return the value of the property */ public IssuerTypeBean getIssuerType() { return _issuerType; } /** * Sets the issuerType. * @param issuerType the new value of the property */ public void setIssuerType(IssuerTypeBean issuerType) { this._issuerType = issuerType; } /** * Gets the the {@code issuerType} property. * @return the property, not null */ public final Property<IssuerTypeBean> issuerType() { return metaBean().issuerType().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the issuerDomicile. * @return the value of the property */ public String getIssuerDomicile() { return _issuerDomicile; } /** * Sets the issuerDomicile. * @param issuerDomicile the new value of the property */ public void setIssuerDomicile(String issuerDomicile) { this._issuerDomicile = issuerDomicile; } /** * Gets the the {@code issuerDomicile} property. * @return the property, not null */ public final Property<String> issuerDomicile() { return metaBean().issuerDomicile().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the market. * @return the value of the property */ public MarketBean getMarket() { return _market; } /** * Sets the market. * @param market the new value of the property */ public void setMarket(MarketBean market) { this._market = market; } /** * Gets the the {@code market} property. * @return the property, not null */ public final Property<MarketBean> market() { return metaBean().market().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the currency. * @return the value of the property */ public CurrencyBean getCurrency() { return _currency; } /** * Sets the currency. * @param currency the new value of the property */ public void setCurrency(CurrencyBean currency) { this._currency = currency; } /** * Gets the the {@code currency} property. * @return the property, not null */ public final Property<CurrencyBean> currency() { return metaBean().currency().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the yieldConvention. * @return the value of the property */ public YieldConventionBean getYieldConvention() { return _yieldConvention; } /** * Sets the yieldConvention. * @param yieldConvention the new value of the property */ public void setYieldConvention(YieldConventionBean yieldConvention) { this._yieldConvention = yieldConvention; } /** * Gets the the {@code yieldConvention} property. * @return the property, not null */ public final Property<YieldConventionBean> yieldConvention() { return metaBean().yieldConvention().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the guaranteeType. * @return the value of the property */ public GuaranteeTypeBean getGuaranteeType() { return _guaranteeType; } /** * Sets the guaranteeType. * @param guaranteeType the new value of the property */ public void setGuaranteeType(GuaranteeTypeBean guaranteeType) { this._guaranteeType = guaranteeType; } /** * Gets the the {@code guaranteeType} property. * @return the property, not null */ public final Property<GuaranteeTypeBean> guaranteeType() { return metaBean().guaranteeType().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the lastTradeDate. * @return the value of the property */ public ExpiryBean getLastTradeDate() { return _lastTradeDate; } /** * Sets the lastTradeDate. * @param lastTradeDate the new value of the property */ public void setLastTradeDate(ExpiryBean lastTradeDate) { this._lastTradeDate = lastTradeDate; } /** * Gets the the {@code lastTradeDate} property. * @return the property, not null */ public final Property<ExpiryBean> lastTradeDate() { return metaBean().lastTradeDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the couponType. * @return the value of the property */ public CouponTypeBean getCouponType() { return _couponType; } /** * Sets the couponType. * @param couponType the new value of the property */ public void setCouponType(CouponTypeBean couponType) { this._couponType = couponType; } /** * Gets the the {@code couponType} property. * @return the property, not null */ public final Property<CouponTypeBean> couponType() { return metaBean().couponType().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the couponRate. * @return the value of the property */ public double getCouponRate() { return _couponRate; } /** * Sets the couponRate. * @param couponRate the new value of the property */ public void setCouponRate(double couponRate) { this._couponRate = couponRate; } /** * Gets the the {@code couponRate} property. * @return the property, not null */ public final Property<Double> couponRate() { return metaBean().couponRate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the couponFrequency. * @return the value of the property */ public FrequencyBean getCouponFrequency() { return _couponFrequency; } /** * Sets the couponFrequency. * @param couponFrequency the new value of the property */ public void setCouponFrequency(FrequencyBean couponFrequency) { this._couponFrequency = couponFrequency; } /** * Gets the the {@code couponFrequency} property. * @return the property, not null */ public final Property<FrequencyBean> couponFrequency() { return metaBean().couponFrequency().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the dayCountConvention. * @return the value of the property */ public DayCountBean getDayCountConvention() { return _dayCountConvention; } /** * Sets the dayCountConvention. * @param dayCountConvention the new value of the property */ public void setDayCountConvention(DayCountBean dayCountConvention) { this._dayCountConvention = dayCountConvention; } /** * Gets the the {@code dayCountConvention} property. * @return the property, not null */ public final Property<DayCountBean> dayCountConvention() { return metaBean().dayCountConvention().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the businessDayConvention. * @return the value of the property */ public BusinessDayConventionBean getBusinessDayConvention() { return _businessDayConvention; } /** * Sets the businessDayConvention. * @param businessDayConvention the new value of the property */ public void setBusinessDayConvention(BusinessDayConventionBean businessDayConvention) { this._businessDayConvention = businessDayConvention; } /** * Gets the the {@code businessDayConvention} property. * @return the property, not null */ public final Property<BusinessDayConventionBean> businessDayConvention() { return metaBean().businessDayConvention().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the announcementDate. * @return the value of the property */ public ZonedDateTimeBean getAnnouncementDate() { return _announcementDate; } /** * Sets the announcementDate. * @param announcementDate the new value of the property */ public void setAnnouncementDate(ZonedDateTimeBean announcementDate) { this._announcementDate = announcementDate; } /** * Gets the the {@code announcementDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> announcementDate() { return metaBean().announcementDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the interestAccrualDate. * @return the value of the property */ public ZonedDateTimeBean getInterestAccrualDate() { return _interestAccrualDate; } /** * Sets the interestAccrualDate. * @param interestAccrualDate the new value of the property */ public void setInterestAccrualDate(ZonedDateTimeBean interestAccrualDate) { this._interestAccrualDate = interestAccrualDate; } /** * Gets the the {@code interestAccrualDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> interestAccrualDate() { return metaBean().interestAccrualDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the settlementDate. * @return the value of the property */ public ZonedDateTimeBean getSettlementDate() { return _settlementDate; } /** * Sets the settlementDate. * @param settlementDate the new value of the property */ public void setSettlementDate(ZonedDateTimeBean settlementDate) { this._settlementDate = settlementDate; } /** * Gets the the {@code settlementDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> settlementDate() { return metaBean().settlementDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the firstCouponDate. * @return the value of the property */ public ZonedDateTimeBean getFirstCouponDate() { return _firstCouponDate; } /** * Sets the firstCouponDate. * @param firstCouponDate the new value of the property */ public void setFirstCouponDate(ZonedDateTimeBean firstCouponDate) { this._firstCouponDate = firstCouponDate; } /** * Gets the the {@code firstCouponDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> firstCouponDate() { return metaBean().firstCouponDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the issuancePrice. * @return the value of the property */ public Double getIssuancePrice() { return _issuancePrice; } /** * Sets the issuancePrice. * @param issuancePrice the new value of the property */ public void setIssuancePrice(Double issuancePrice) { this._issuancePrice = issuancePrice; } /** * Gets the the {@code issuancePrice} property. * @return the property, not null */ public final Property<Double> issuancePrice() { return metaBean().issuancePrice().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the totalAmountIssued. * @return the value of the property */ public double getTotalAmountIssued() { return _totalAmountIssued; } /** * Sets the totalAmountIssued. * @param totalAmountIssued the new value of the property */ public void setTotalAmountIssued(double totalAmountIssued) { this._totalAmountIssued = totalAmountIssued; } /** * Gets the the {@code totalAmountIssued} property. * @return the property, not null */ public final Property<Double> totalAmountIssued() { return metaBean().totalAmountIssued().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the minimumAmount. * @return the value of the property */ public double getMinimumAmount() { return _minimumAmount; } /** * Sets the minimumAmount. * @param minimumAmount the new value of the property */ public void setMinimumAmount(double minimumAmount) { this._minimumAmount = minimumAmount; } /** * Gets the the {@code minimumAmount} property. * @return the property, not null */ public final Property<Double> minimumAmount() { return metaBean().minimumAmount().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the minimumIncrement. * @return the value of the property */ public double getMinimumIncrement() { return _minimumIncrement; } /** * Sets the minimumIncrement. * @param minimumIncrement the new value of the property */ public void setMinimumIncrement(double minimumIncrement) { this._minimumIncrement = minimumIncrement; } /** * Gets the the {@code minimumIncrement} property. * @return the property, not null */ public final Property<Double> minimumIncrement() { return metaBean().minimumIncrement().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the parAmount. * @return the value of the property */ public double getParAmount() { return _parAmount; } /** * Sets the parAmount. * @param parAmount the new value of the property */ public void setParAmount(double parAmount) { this._parAmount = parAmount; } /** * Gets the the {@code parAmount} property. * @return the property, not null */ public final Property<Double> parAmount() { return metaBean().parAmount().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the redemptionValue. * @return the value of the property */ public double getRedemptionValue() { return _redemptionValue; } /** * Sets the redemptionValue. * @param redemptionValue the new value of the property */ public void setRedemptionValue(double redemptionValue) { this._redemptionValue = redemptionValue; } /** * Gets the the {@code redemptionValue} property. * @return the property, not null */ public final Property<Double> redemptionValue() { return metaBean().redemptionValue().createProperty(this); } //----------------------------------------------------------------------- @Override public BondSecurityBean clone() { return JodaBeanUtils.cloneAlways(this); } @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { BondSecurityBean other = (BondSecurityBean) obj; return JodaBeanUtils.equal(getBondType(), other.getBondType()) && JodaBeanUtils.equal(getIssuerName(), other.getIssuerName()) && JodaBeanUtils.equal(getIssuerType(), other.getIssuerType()) && JodaBeanUtils.equal(getIssuerDomicile(), other.getIssuerDomicile()) && JodaBeanUtils.equal(getMarket(), other.getMarket()) && JodaBeanUtils.equal(getCurrency(), other.getCurrency()) && JodaBeanUtils.equal(getYieldConvention(), other.getYieldConvention()) && JodaBeanUtils.equal(getGuaranteeType(), other.getGuaranteeType()) && JodaBeanUtils.equal(getLastTradeDate(), other.getLastTradeDate()) && JodaBeanUtils.equal(getCouponType(), other.getCouponType()) && JodaBeanUtils.equal(getCouponRate(), other.getCouponRate()) && JodaBeanUtils.equal(getCouponFrequency(), other.getCouponFrequency()) && JodaBeanUtils.equal(getDayCountConvention(), other.getDayCountConvention()) && JodaBeanUtils.equal(getBusinessDayConvention(), other.getBusinessDayConvention()) && JodaBeanUtils.equal(getAnnouncementDate(), other.getAnnouncementDate()) && JodaBeanUtils.equal(getInterestAccrualDate(), other.getInterestAccrualDate()) && JodaBeanUtils.equal(getSettlementDate(), other.getSettlementDate()) && JodaBeanUtils.equal(getFirstCouponDate(), other.getFirstCouponDate()) && JodaBeanUtils.equal(getIssuancePrice(), other.getIssuancePrice()) && JodaBeanUtils.equal(getTotalAmountIssued(), other.getTotalAmountIssued()) && JodaBeanUtils.equal(getMinimumAmount(), other.getMinimumAmount()) && JodaBeanUtils.equal(getMinimumIncrement(), other.getMinimumIncrement()) && JodaBeanUtils.equal(getParAmount(), other.getParAmount()) && JodaBeanUtils.equal(getRedemptionValue(), other.getRedemptionValue()) && super.equals(obj); } return false; } @Override public int hashCode() { int hash = 7; hash = hash * 31 + JodaBeanUtils.hashCode(getBondType()); hash = hash * 31 + JodaBeanUtils.hashCode(getIssuerName()); hash = hash * 31 + JodaBeanUtils.hashCode(getIssuerType()); hash = hash * 31 + JodaBeanUtils.hashCode(getIssuerDomicile()); hash = hash * 31 + JodaBeanUtils.hashCode(getMarket()); hash = hash * 31 + JodaBeanUtils.hashCode(getCurrency()); hash = hash * 31 + JodaBeanUtils.hashCode(getYieldConvention()); hash = hash * 31 + JodaBeanUtils.hashCode(getGuaranteeType()); hash = hash * 31 + JodaBeanUtils.hashCode(getLastTradeDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getCouponType()); hash = hash * 31 + JodaBeanUtils.hashCode(getCouponRate()); hash = hash * 31 + JodaBeanUtils.hashCode(getCouponFrequency()); hash = hash * 31 + JodaBeanUtils.hashCode(getDayCountConvention()); hash = hash * 31 + JodaBeanUtils.hashCode(getBusinessDayConvention()); hash = hash * 31 + JodaBeanUtils.hashCode(getAnnouncementDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getInterestAccrualDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getSettlementDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getFirstCouponDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getIssuancePrice()); hash = hash * 31 + JodaBeanUtils.hashCode(getTotalAmountIssued()); hash = hash * 31 + JodaBeanUtils.hashCode(getMinimumAmount()); hash = hash * 31 + JodaBeanUtils.hashCode(getMinimumIncrement()); hash = hash * 31 + JodaBeanUtils.hashCode(getParAmount()); hash = hash * 31 + JodaBeanUtils.hashCode(getRedemptionValue()); return hash ^ super.hashCode(); } @Override public String toString() { StringBuilder buf = new StringBuilder(800); buf.append("BondSecurityBean{"); int len = buf.length(); toString(buf); if (buf.length() > len) { buf.setLength(buf.length() - 2); } buf.append('}'); return buf.toString(); } @Override protected void toString(StringBuilder buf) { super.toString(buf); buf.append("bondType").append('=').append(JodaBeanUtils.toString(getBondType())).append(',').append(' '); buf.append("issuerName").append('=').append(JodaBeanUtils.toString(getIssuerName())).append(',').append(' '); buf.append("issuerType").append('=').append(JodaBeanUtils.toString(getIssuerType())).append(',').append(' '); buf.append("issuerDomicile").append('=').append(JodaBeanUtils.toString(getIssuerDomicile())).append(',').append(' '); buf.append("market").append('=').append(JodaBeanUtils.toString(getMarket())).append(',').append(' '); buf.append("currency").append('=').append(JodaBeanUtils.toString(getCurrency())).append(',').append(' '); buf.append("yieldConvention").append('=').append(JodaBeanUtils.toString(getYieldConvention())).append(',').append(' '); buf.append("guaranteeType").append('=').append(JodaBeanUtils.toString(getGuaranteeType())).append(',').append(' '); buf.append("lastTradeDate").append('=').append(JodaBeanUtils.toString(getLastTradeDate())).append(',').append(' '); buf.append("couponType").append('=').append(JodaBeanUtils.toString(getCouponType())).append(',').append(' '); buf.append("couponRate").append('=').append(JodaBeanUtils.toString(getCouponRate())).append(',').append(' '); buf.append("couponFrequency").append('=').append(JodaBeanUtils.toString(getCouponFrequency())).append(',').append(' '); buf.append("dayCountConvention").append('=').append(JodaBeanUtils.toString(getDayCountConvention())).append(',').append(' '); buf.append("businessDayConvention").append('=').append(JodaBeanUtils.toString(getBusinessDayConvention())).append(',').append(' '); buf.append("announcementDate").append('=').append(JodaBeanUtils.toString(getAnnouncementDate())).append(',').append(' '); buf.append("interestAccrualDate").append('=').append(JodaBeanUtils.toString(getInterestAccrualDate())).append(',').append(' '); buf.append("settlementDate").append('=').append(JodaBeanUtils.toString(getSettlementDate())).append(',').append(' '); buf.append("firstCouponDate").append('=').append(JodaBeanUtils.toString(getFirstCouponDate())).append(',').append(' '); buf.append("issuancePrice").append('=').append(JodaBeanUtils.toString(getIssuancePrice())).append(',').append(' '); buf.append("totalAmountIssued").append('=').append(JodaBeanUtils.toString(getTotalAmountIssued())).append(',').append(' '); buf.append("minimumAmount").append('=').append(JodaBeanUtils.toString(getMinimumAmount())).append(',').append(' '); buf.append("minimumIncrement").append('=').append(JodaBeanUtils.toString(getMinimumIncrement())).append(',').append(' '); buf.append("parAmount").append('=').append(JodaBeanUtils.toString(getParAmount())).append(',').append(' '); buf.append("redemptionValue").append('=').append(JodaBeanUtils.toString(getRedemptionValue())).append(',').append(' '); } //----------------------------------------------------------------------- /** * The meta-bean for {@code BondSecurityBean}. */ public static class Meta extends SecurityBean.Meta { /** * The singleton instance of the meta-bean. */ static final Meta INSTANCE = new Meta(); /** * The meta-property for the {@code bondType} property. */ private final MetaProperty<BondType> _bondType = DirectMetaProperty.ofReadWrite( this, "bondType", BondSecurityBean.class, BondType.class); /** * The meta-property for the {@code issuerName} property. */ private final MetaProperty<String> _issuerName = DirectMetaProperty.ofReadWrite( this, "issuerName", BondSecurityBean.class, String.class); /** * The meta-property for the {@code issuerType} property. */ private final MetaProperty<IssuerTypeBean> _issuerType = DirectMetaProperty.ofReadWrite( this, "issuerType", BondSecurityBean.class, IssuerTypeBean.class); /** * The meta-property for the {@code issuerDomicile} property. */ private final MetaProperty<String> _issuerDomicile = DirectMetaProperty.ofReadWrite( this, "issuerDomicile", BondSecurityBean.class, String.class); /** * The meta-property for the {@code market} property. */ private final MetaProperty<MarketBean> _market = DirectMetaProperty.ofReadWrite( this, "market", BondSecurityBean.class, MarketBean.class); /** * The meta-property for the {@code currency} property. */ private final MetaProperty<CurrencyBean> _currency = DirectMetaProperty.ofReadWrite( this, "currency", BondSecurityBean.class, CurrencyBean.class); /** * The meta-property for the {@code yieldConvention} property. */ private final MetaProperty<YieldConventionBean> _yieldConvention = DirectMetaProperty.ofReadWrite( this, "yieldConvention", BondSecurityBean.class, YieldConventionBean.class); /** * The meta-property for the {@code guaranteeType} property. */ private final MetaProperty<GuaranteeTypeBean> _guaranteeType = DirectMetaProperty.ofReadWrite( this, "guaranteeType", BondSecurityBean.class, GuaranteeTypeBean.class); /** * The meta-property for the {@code lastTradeDate} property. */ private final MetaProperty<ExpiryBean> _lastTradeDate = DirectMetaProperty.ofReadWrite( this, "lastTradeDate", BondSecurityBean.class, ExpiryBean.class); /** * The meta-property for the {@code couponType} property. */ private final MetaProperty<CouponTypeBean> _couponType = DirectMetaProperty.ofReadWrite( this, "couponType", BondSecurityBean.class, CouponTypeBean.class); /** * The meta-property for the {@code couponRate} property. */ private final MetaProperty<Double> _couponRate = DirectMetaProperty.ofReadWrite( this, "couponRate", BondSecurityBean.class, Double.TYPE); /** * The meta-property for the {@code couponFrequency} property. */ private final MetaProperty<FrequencyBean> _couponFrequency = DirectMetaProperty.ofReadWrite( this, "couponFrequency", BondSecurityBean.class, FrequencyBean.class); /** * The meta-property for the {@code dayCountConvention} property. */ private final MetaProperty<DayCountBean> _dayCountConvention = DirectMetaProperty.ofReadWrite( this, "dayCountConvention", BondSecurityBean.class, DayCountBean.class); /** * The meta-property for the {@code businessDayConvention} property. */ private final MetaProperty<BusinessDayConventionBean> _businessDayConvention = DirectMetaProperty.ofReadWrite( this, "businessDayConvention", BondSecurityBean.class, BusinessDayConventionBean.class); /** * The meta-property for the {@code announcementDate} property. */ private final MetaProperty<ZonedDateTimeBean> _announcementDate = DirectMetaProperty.ofReadWrite( this, "announcementDate", BondSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code interestAccrualDate} property. */ private final MetaProperty<ZonedDateTimeBean> _interestAccrualDate = DirectMetaProperty.ofReadWrite( this, "interestAccrualDate", BondSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code settlementDate} property. */ private final MetaProperty<ZonedDateTimeBean> _settlementDate = DirectMetaProperty.ofReadWrite( this, "settlementDate", BondSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code firstCouponDate} property. */ private final MetaProperty<ZonedDateTimeBean> _firstCouponDate = DirectMetaProperty.ofReadWrite( this, "firstCouponDate", BondSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code issuancePrice} property. */ private final MetaProperty<Double> _issuancePrice = DirectMetaProperty.ofReadWrite( this, "issuancePrice", BondSecurityBean.class, Double.class); /** * The meta-property for the {@code totalAmountIssued} property. */ private final MetaProperty<Double> _totalAmountIssued = DirectMetaProperty.ofReadWrite( this, "totalAmountIssued", BondSecurityBean.class, Double.TYPE); /** * The meta-property for the {@code minimumAmount} property. */ private final MetaProperty<Double> _minimumAmount = DirectMetaProperty.ofReadWrite( this, "minimumAmount", BondSecurityBean.class, Double.TYPE); /** * The meta-property for the {@code minimumIncrement} property. */ private final MetaProperty<Double> _minimumIncrement = DirectMetaProperty.ofReadWrite( this, "minimumIncrement", BondSecurityBean.class, Double.TYPE); /** * The meta-property for the {@code parAmount} property. */ private final MetaProperty<Double> _parAmount = DirectMetaProperty.ofReadWrite( this, "parAmount", BondSecurityBean.class, Double.TYPE); /** * The meta-property for the {@code redemptionValue} property. */ private final MetaProperty<Double> _redemptionValue = DirectMetaProperty.ofReadWrite( this, "redemptionValue", BondSecurityBean.class, Double.TYPE); /** * The meta-properties. */ private final Map<String, MetaProperty<?>> _metaPropertyMap$ = new DirectMetaPropertyMap( this, (DirectMetaPropertyMap) super.metaPropertyMap(), "bondType", "issuerName", "issuerType", "issuerDomicile", "market", "currency", "yieldConvention", "guaranteeType", "lastTradeDate", "couponType", "couponRate", "couponFrequency", "dayCountConvention", "businessDayConvention", "announcementDate", "interestAccrualDate", "settlementDate", "firstCouponDate", "issuancePrice", "totalAmountIssued", "minimumAmount", "minimumIncrement", "parAmount", "redemptionValue"); /** * Restricted constructor. */ protected Meta() { } @Override protected MetaProperty<?> metaPropertyGet(String propertyName) { switch (propertyName.hashCode()) { case 1969562781: // bondType return _bondType; case 1459772644: // issuerName return _issuerName; case 1459974547: // issuerType return _issuerType; case -114049505: // issuerDomicile return _issuerDomicile; case -1081306052: // market return _market; case 575402001: // currency return _currency; case -1895216418: // yieldConvention return _yieldConvention; case 693583330: // guaranteeType return _guaranteeType; case -1041950404: // lastTradeDate return _lastTradeDate; case 609638528: // couponType return _couponType; case 609556006: // couponRate return _couponRate; case 144480214: // couponFrequency return _couponFrequency; case 589154980: // dayCountConvention return _dayCountConvention; case -1002835891: // businessDayConvention return _businessDayConvention; case -562907755: // announcementDate return _announcementDate; case -693265293: // interestAccrualDate return _interestAccrualDate; case -295948169: // settlementDate return _settlementDate; case 793496516: // firstCouponDate return _firstCouponDate; case -947491410: // issuancePrice return _issuancePrice; case 1841198727: // totalAmountIssued return _totalAmountIssued; case 2017331718: // minimumAmount return _minimumAmount; case 1160465153: // minimumIncrement return _minimumIncrement; case 1038626905: // parAmount return _parAmount; case 348936710: // redemptionValue return _redemptionValue; } return super.metaPropertyGet(propertyName); } @Override public BeanBuilder<? extends BondSecurityBean> builder() { return new DirectBeanBuilder<BondSecurityBean>(new BondSecurityBean()); } @Override public Class<? extends BondSecurityBean> beanType() { return BondSecurityBean.class; } @Override public Map<String, MetaProperty<?>> metaPropertyMap() { return _metaPropertyMap$; } //----------------------------------------------------------------------- /** * The meta-property for the {@code bondType} property. * @return the meta-property, not null */ public final MetaProperty<BondType> bondType() { return _bondType; } /** * The meta-property for the {@code issuerName} property. * @return the meta-property, not null */ public final MetaProperty<String> issuerName() { return _issuerName; } /** * The meta-property for the {@code issuerType} property. * @return the meta-property, not null */ public final MetaProperty<IssuerTypeBean> issuerType() { return _issuerType; } /** * The meta-property for the {@code issuerDomicile} property. * @return the meta-property, not null */ public final MetaProperty<String> issuerDomicile() { return _issuerDomicile; } /** * The meta-property for the {@code market} property. * @return the meta-property, not null */ public final MetaProperty<MarketBean> market() { return _market; } /** * The meta-property for the {@code currency} property. * @return the meta-property, not null */ public final MetaProperty<CurrencyBean> currency() { return _currency; } /** * The meta-property for the {@code yieldConvention} property. * @return the meta-property, not null */ public final MetaProperty<YieldConventionBean> yieldConvention() { return _yieldConvention; } /** * The meta-property for the {@code guaranteeType} property. * @return the meta-property, not null */ public final MetaProperty<GuaranteeTypeBean> guaranteeType() { return _guaranteeType; } /** * The meta-property for the {@code lastTradeDate} property. * @return the meta-property, not null */ public final MetaProperty<ExpiryBean> lastTradeDate() { return _lastTradeDate; } /** * The meta-property for the {@code couponType} property. * @return the meta-property, not null */ public final MetaProperty<CouponTypeBean> couponType() { return _couponType; } /** * The meta-property for the {@code couponRate} property. * @return the meta-property, not null */ public final MetaProperty<Double> couponRate() { return _couponRate; } /** * The meta-property for the {@code couponFrequency} property. * @return the meta-property, not null */ public final MetaProperty<FrequencyBean> couponFrequency() { return _couponFrequency; } /** * The meta-property for the {@code dayCountConvention} property. * @return the meta-property, not null */ public final MetaProperty<DayCountBean> dayCountConvention() { return _dayCountConvention; } /** * The meta-property for the {@code businessDayConvention} property. * @return the meta-property, not null */ public final MetaProperty<BusinessDayConventionBean> businessDayConvention() { return _businessDayConvention; } /** * The meta-property for the {@code announcementDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> announcementDate() { return _announcementDate; } /** * The meta-property for the {@code interestAccrualDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> interestAccrualDate() { return _interestAccrualDate; } /** * The meta-property for the {@code settlementDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> settlementDate() { return _settlementDate; } /** * The meta-property for the {@code firstCouponDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> firstCouponDate() { return _firstCouponDate; } /** * The meta-property for the {@code issuancePrice} property. * @return the meta-property, not null */ public final MetaProperty<Double> issuancePrice() { return _issuancePrice; } /** * The meta-property for the {@code totalAmountIssued} property. * @return the meta-property, not null */ public final MetaProperty<Double> totalAmountIssued() { return _totalAmountIssued; } /** * The meta-property for the {@code minimumAmount} property. * @return the meta-property, not null */ public final MetaProperty<Double> minimumAmount() { return _minimumAmount; } /** * The meta-property for the {@code minimumIncrement} property. * @return the meta-property, not null */ public final MetaProperty<Double> minimumIncrement() { return _minimumIncrement; } /** * The meta-property for the {@code parAmount} property. * @return the meta-property, not null */ public final MetaProperty<Double> parAmount() { return _parAmount; } /** * The meta-property for the {@code redemptionValue} property. * @return the meta-property, not null */ public final MetaProperty<Double> redemptionValue() { return _redemptionValue; } //----------------------------------------------------------------------- @Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case 1969562781: // bondType return ((BondSecurityBean) bean).getBondType(); case 1459772644: // issuerName return ((BondSecurityBean) bean).getIssuerName(); case 1459974547: // issuerType return ((BondSecurityBean) bean).getIssuerType(); case -114049505: // issuerDomicile return ((BondSecurityBean) bean).getIssuerDomicile(); case -1081306052: // market return ((BondSecurityBean) bean).getMarket(); case 575402001: // currency return ((BondSecurityBean) bean).getCurrency(); case -1895216418: // yieldConvention return ((BondSecurityBean) bean).getYieldConvention(); case 693583330: // guaranteeType return ((BondSecurityBean) bean).getGuaranteeType(); case -1041950404: // lastTradeDate return ((BondSecurityBean) bean).getLastTradeDate(); case 609638528: // couponType return ((BondSecurityBean) bean).getCouponType(); case 609556006: // couponRate return ((BondSecurityBean) bean).getCouponRate(); case 144480214: // couponFrequency return ((BondSecurityBean) bean).getCouponFrequency(); case 589154980: // dayCountConvention return ((BondSecurityBean) bean).getDayCountConvention(); case -1002835891: // businessDayConvention return ((BondSecurityBean) bean).getBusinessDayConvention(); case -562907755: // announcementDate return ((BondSecurityBean) bean).getAnnouncementDate(); case -693265293: // interestAccrualDate return ((BondSecurityBean) bean).getInterestAccrualDate(); case -295948169: // settlementDate return ((BondSecurityBean) bean).getSettlementDate(); case 793496516: // firstCouponDate return ((BondSecurityBean) bean).getFirstCouponDate(); case -947491410: // issuancePrice return ((BondSecurityBean) bean).getIssuancePrice(); case 1841198727: // totalAmountIssued return ((BondSecurityBean) bean).getTotalAmountIssued(); case 2017331718: // minimumAmount return ((BondSecurityBean) bean).getMinimumAmount(); case 1160465153: // minimumIncrement return ((BondSecurityBean) bean).getMinimumIncrement(); case 1038626905: // parAmount return ((BondSecurityBean) bean).getParAmount(); case 348936710: // redemptionValue return ((BondSecurityBean) bean).getRedemptionValue(); } return super.propertyGet(bean, propertyName, quiet); } @Override protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) { switch (propertyName.hashCode()) { case 1969562781: // bondType ((BondSecurityBean) bean).setBondType((BondType) newValue); return; case 1459772644: // issuerName ((BondSecurityBean) bean).setIssuerName((String) newValue); return; case 1459974547: // issuerType ((BondSecurityBean) bean).setIssuerType((IssuerTypeBean) newValue); return; case -114049505: // issuerDomicile ((BondSecurityBean) bean).setIssuerDomicile((String) newValue); return; case -1081306052: // market ((BondSecurityBean) bean).setMarket((MarketBean) newValue); return; case 575402001: // currency ((BondSecurityBean) bean).setCurrency((CurrencyBean) newValue); return; case -1895216418: // yieldConvention ((BondSecurityBean) bean).setYieldConvention((YieldConventionBean) newValue); return; case 693583330: // guaranteeType ((BondSecurityBean) bean).setGuaranteeType((GuaranteeTypeBean) newValue); return; case -1041950404: // lastTradeDate ((BondSecurityBean) bean).setLastTradeDate((ExpiryBean) newValue); return; case 609638528: // couponType ((BondSecurityBean) bean).setCouponType((CouponTypeBean) newValue); return; case 609556006: // couponRate ((BondSecurityBean) bean).setCouponRate((Double) newValue); return; case 144480214: // couponFrequency ((BondSecurityBean) bean).setCouponFrequency((FrequencyBean) newValue); return; case 589154980: // dayCountConvention ((BondSecurityBean) bean).setDayCountConvention((DayCountBean) newValue); return; case -1002835891: // businessDayConvention ((BondSecurityBean) bean).setBusinessDayConvention((BusinessDayConventionBean) newValue); return; case -562907755: // announcementDate ((BondSecurityBean) bean).setAnnouncementDate((ZonedDateTimeBean) newValue); return; case -693265293: // interestAccrualDate ((BondSecurityBean) bean).setInterestAccrualDate((ZonedDateTimeBean) newValue); return; case -295948169: // settlementDate ((BondSecurityBean) bean).setSettlementDate((ZonedDateTimeBean) newValue); return; case 793496516: // firstCouponDate ((BondSecurityBean) bean).setFirstCouponDate((ZonedDateTimeBean) newValue); return; case -947491410: // issuancePrice ((BondSecurityBean) bean).setIssuancePrice((Double) newValue); return; case 1841198727: // totalAmountIssued ((BondSecurityBean) bean).setTotalAmountIssued((Double) newValue); return; case 2017331718: // minimumAmount ((BondSecurityBean) bean).setMinimumAmount((Double) newValue); return; case 1160465153: // minimumIncrement ((BondSecurityBean) bean).setMinimumIncrement((Double) newValue); return; case 1038626905: // parAmount ((BondSecurityBean) bean).setParAmount((Double) newValue); return; case 348936710: // redemptionValue ((BondSecurityBean) bean).setRedemptionValue((Double) newValue); return; } super.propertySet(bean, propertyName, newValue, quiet); } } ///CLOVER:ON //-------------------------- AUTOGENERATED END -------------------------- }