Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v3.0-03/04/2009 09:20 AM(valikov)-fcs
- // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
- // Any modifications to this file will be lost upon recompilation of the source schema.
- // Generated on: 2010.03.30 at 05:07:22 PM EDT
- //
- package com.a.b.c.domain.model.span;
- import javax.persistence.Basic;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.GenerationType;
- import javax.persistence.Id;
- import javax.persistence.Inheritance;
- import javax.persistence.InheritanceType;
- import javax.persistence.Table;
- import javax.xml.bind.annotation.XmlAccessType;
- import javax.xml.bind.annotation.XmlAccessorType;
- import javax.xml.bind.annotation.XmlAttribute;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlRootElement;
- import javax.xml.bind.annotation.XmlType;
- import org.apache.commons.lang.builder.EqualsBuilder;
- import org.apache.commons.lang.builder.HashCodeBuilder;
- import org.jvnet.jaxb2_commons.lang.Equals;
- import org.jvnet.jaxb2_commons.lang.HashCode;
- import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
- import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
- import org.hibernate.annotations.GenericGenerator;
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="ExchangeCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="CombinedContract" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="TierNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="SpreadSide" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="Credit" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="DeltaRatio" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="FuturesPriceRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="PairedLine" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="PortfolioRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="RemainingDelta" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="ScanningRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="TimeRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="VolatilityRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="WeightedFuturesPriceRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="WfprDelta" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="MarketSide" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * </sequence>
- * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "exchangeCode",
- "combinedContract",
- "tierNumber",
- "spreadSide",
- "credit",
- "deltaRatio",
- "futuresPriceRisk",
- "pairedLine",
- "portfolioRisk",
- "remainingDelta",
- "scanningRisk",
- "timeRisk",
- "volatilityRisk",
- "weightedFuturesPriceRisk",
- "wfprDelta",
- "marketSide"
- })
- @XmlRootElement(name = "Leg")
- @Entity(name = "Leg")
- @Table(name = "SPAN_LEG")
- @Inheritance(strategy = InheritanceType.JOINED)
- public class Leg
- implements Equals, HashCode
- {
- @XmlElement(name = "ExchangeCode", required = true)
- protected String exchangeCode;
- @XmlElement(name = "CombinedContract", required = true)
- protected String combinedContract;
- @XmlElement(name = "TierNumber", required = true)
- protected String tierNumber;
- @XmlElement(name = "SpreadSide", required = true)
- protected String spreadSide;
- @XmlElement(name = "Credit", required = true)
- protected String credit;
- @XmlElement(name = "DeltaRatio", required = true)
- protected String deltaRatio;
- @XmlElement(name = "FuturesPriceRisk", required = true)
- protected String futuresPriceRisk;
- @XmlElement(name = "PairedLine", required = true)
- protected String pairedLine;
- @XmlElement(name = "PortfolioRisk", required = true)
- protected String portfolioRisk;
- @XmlElement(name = "RemainingDelta", required = true)
- protected String remainingDelta;
- @XmlElement(name = "ScanningRisk", required = true)
- protected String scanningRisk;
- @XmlElement(name = "TimeRisk", required = true)
- protected String timeRisk;
- @XmlElement(name = "VolatilityRisk", required = true)
- protected String volatilityRisk;
- @XmlElement(name = "WeightedFuturesPriceRisk", required = true)
- protected String weightedFuturesPriceRisk;
- @XmlElement(name = "WfprDelta", required = true)
- protected String wfprDelta;
- @XmlElement(name = "MarketSide", required = true)
- protected String marketSide;
- @XmlAttribute
- protected String id;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the exchangeCode property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "EXCHANGECODE", length = 255)
- public String getExchangeCode() {
- return exchangeCode;
- }
- /**
- * Sets the value of the exchangeCode property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setExchangeCode(String value) {
- this.exchangeCode = value;
- }
- /**
- * Gets the value of the combinedContract property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "COMBINEDCONTRACT", length = 255)
- public String getCombinedContract() {
- return combinedContract;
- }
- /**
- * Sets the value of the combinedContract property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCombinedContract(String value) {
- this.combinedContract = value;
- }
- /**
- * Gets the value of the tierNumber property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "TIERNUMBER", length = 255)
- public String getTierNumber() {
- return tierNumber;
- }
- /**
- * Sets the value of the tierNumber property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTierNumber(String value) {
- this.tierNumber = value;
- }
- /**
- * Gets the value of the spreadSide property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "SPREADSIDE", length = 255)
- public String getSpreadSide() {
- return spreadSide;
- }
- /**
- * Sets the value of the spreadSide property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setSpreadSide(String value) {
- this.spreadSide = value;
- }
- /**
- * Gets the value of the credit property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "CREDIT", length = 255)
- public String getCredit() {
- return credit;
- }
- /**
- * Sets the value of the credit property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCredit(String value) {
- this.credit = value;
- }
- /**
- * Gets the value of the deltaRatio property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "DELTARATIO", length = 255)
- public String getDeltaRatio() {
- return deltaRatio;
- }
- /**
- * Sets the value of the deltaRatio property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDeltaRatio(String value) {
- this.deltaRatio = value;
- }
- /**
- * Gets the value of the futuresPriceRisk property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "FUTURESPRICERISK", length = 255)
- public String getFuturesPriceRisk() {
- return futuresPriceRisk;
- }
- /**
- * Sets the value of the futuresPriceRisk property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setFuturesPriceRisk(String value) {
- this.futuresPriceRisk = value;
- }
- /**
- * Gets the value of the pairedLine property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "PAIREDLINE", length = 255)
- public String getPairedLine() {
- return pairedLine;
- }
- /**
- * Sets the value of the pairedLine property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setPairedLine(String value) {
- this.pairedLine = value;
- }
- /**
- * Gets the value of the portfolioRisk property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "PORTFOLIORISK", length = 255)
- public String getPortfolioRisk() {
- return portfolioRisk;
- }
- /**
- * Sets the value of the portfolioRisk property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setPortfolioRisk(String value) {
- this.portfolioRisk = value;
- }
- /**
- * Gets the value of the remainingDelta property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "REMAININGDELTA", length = 255)
- public String getRemainingDelta() {
- return remainingDelta;
- }
- /**
- * Sets the value of the remainingDelta property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRemainingDelta(String value) {
- this.remainingDelta = value;
- }
- /**
- * Gets the value of the scanningRisk property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "SCANNINGRISK", length = 255)
- public String getScanningRisk() {
- return scanningRisk;
- }
- /**
- * Sets the value of the scanningRisk property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setScanningRisk(String value) {
- this.scanningRisk = value;
- }
- /**
- * Gets the value of the timeRisk property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "TIMERISK", length = 255)
- public String getTimeRisk() {
- return timeRisk;
- }
- /**
- * Sets the value of the timeRisk property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTimeRisk(String value) {
- this.timeRisk = value;
- }
- /**
- * Gets the value of the volatilityRisk property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "VOLATILITYRISK", length = 255)
- public String getVolatilityRisk() {
- return volatilityRisk;
- }
- /**
- * Sets the value of the volatilityRisk property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setVolatilityRisk(String value) {
- this.volatilityRisk = value;
- }
- /**
- * Gets the value of the weightedFuturesPriceRisk property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "WEIGHTEDFUTURESPRICERISK", length = 255)
- public String getWeightedFuturesPriceRisk() {
- return weightedFuturesPriceRisk;
- }
- /**
- * Sets the value of the weightedFuturesPriceRisk property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setWeightedFuturesPriceRisk(String value) {
- this.weightedFuturesPriceRisk = value;
- }
- /**
- * Gets the value of the wfprDelta property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "WFPRDELTA", length = 255)
- public String getWfprDelta() {
- return wfprDelta;
- }
- /**
- * Sets the value of the wfprDelta property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setWfprDelta(String value) {
- this.wfprDelta = value;
- }
- /**
- * Gets the value of the marketSide property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "MARKETSIDE", length = 255)
- public String getMarketSide() {
- return marketSide;
- }
- /**
- * Sets the value of the marketSide property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMarketSide(String value) {
- this.marketSide = value;
- }
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "ID", length = 255)
- public String getId() {
- return id;
- }
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- @Id
- @Column(name = "HJID")
- @GeneratedValue(generator = "marginserviceseq20") @GenericGenerator(name = "marginserviceseq20", strategy = "increment")
- public Long getHjid() {
- return hjid;
- }
- /**
- * Sets the value of the hjid property.
- *
- * @param value
- * allowed object is
- * {@link Long }
- *
- */
- public void setHjid(Long value) {
- this.hjid = value;
- }
- public void equals(Object object, EqualsBuilder equalsBuilder) {
- if (!(object instanceof Leg)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Leg that = ((Leg) object);
- equalsBuilder.append(this.getExchangeCode(), that.getExchangeCode());
- equalsBuilder.append(this.getCombinedContract(), that.getCombinedContract());
- equalsBuilder.append(this.getTierNumber(), that.getTierNumber());
- equalsBuilder.append(this.getSpreadSide(), that.getSpreadSide());
- equalsBuilder.append(this.getCredit(), that.getCredit());
- equalsBuilder.append(this.getDeltaRatio(), that.getDeltaRatio());
- equalsBuilder.append(this.getFuturesPriceRisk(), that.getFuturesPriceRisk());
- equalsBuilder.append(this.getPairedLine(), that.getPairedLine());
- equalsBuilder.append(this.getPortfolioRisk(), that.getPortfolioRisk());
- equalsBuilder.append(this.getRemainingDelta(), that.getRemainingDelta());
- equalsBuilder.append(this.getScanningRisk(), that.getScanningRisk());
- equalsBuilder.append(this.getTimeRisk(), that.getTimeRisk());
- equalsBuilder.append(this.getVolatilityRisk(), that.getVolatilityRisk());
- equalsBuilder.append(this.getWeightedFuturesPriceRisk(), that.getWeightedFuturesPriceRisk());
- equalsBuilder.append(this.getWfprDelta(), that.getWfprDelta());
- equalsBuilder.append(this.getMarketSide(), that.getMarketSide());
- equalsBuilder.append(this.getId(), that.getId());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Leg)) {
- return false;
- }
- if (this == object) {
- return true;
- }
- final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
- equals(object, equalsBuilder);
- return equalsBuilder.isEquals();
- }
- public void hashCode(HashCodeBuilder hashCodeBuilder) {
- hashCodeBuilder.append(this.getExchangeCode());
- hashCodeBuilder.append(this.getCombinedContract());
- hashCodeBuilder.append(this.getTierNumber());
- hashCodeBuilder.append(this.getSpreadSide());
- hashCodeBuilder.append(this.getCredit());
- hashCodeBuilder.append(this.getDeltaRatio());
- hashCodeBuilder.append(this.getFuturesPriceRisk());
- hashCodeBuilder.append(this.getPairedLine());
- hashCodeBuilder.append(this.getPortfolioRisk());
- hashCodeBuilder.append(this.getRemainingDelta());
- hashCodeBuilder.append(this.getScanningRisk());
- hashCodeBuilder.append(this.getTimeRisk());
- hashCodeBuilder.append(this.getVolatilityRisk());
- hashCodeBuilder.append(this.getWeightedFuturesPriceRisk());
- hashCodeBuilder.append(this.getWfprDelta());
- hashCodeBuilder.append(this.getMarketSide());
- hashCodeBuilder.append(this.getId());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement