Advertisement
Guest User

Untitled

a guest
Apr 11th, 2010
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 18.52 KB | None | 0 0
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v3.0-03/04/2009 09:20 AM(valikov)-fcs
  3. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2010.03.30 at 05:07:22 PM EDT
  6. //
  7.  
  8.  
  9. package com.a.b.c.domain.model.span;
  10.  
  11. import javax.persistence.Basic;
  12. import javax.persistence.Column;
  13. import javax.persistence.Entity;
  14. import javax.persistence.GeneratedValue;
  15. import javax.persistence.GenerationType;
  16. import javax.persistence.Id;
  17. import javax.persistence.Inheritance;
  18. import javax.persistence.InheritanceType;
  19. import javax.persistence.Table;
  20. import javax.xml.bind.annotation.XmlAccessType;
  21. import javax.xml.bind.annotation.XmlAccessorType;
  22. import javax.xml.bind.annotation.XmlAttribute;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.apache.commons.lang.builder.EqualsBuilder;
  27. import org.apache.commons.lang.builder.HashCodeBuilder;
  28. import org.jvnet.jaxb2_commons.lang.Equals;
  29. import org.jvnet.jaxb2_commons.lang.HashCode;
  30. import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
  31. import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
  32. import org.hibernate.annotations.GenericGenerator;
  33.  
  34.  
  35. /**
  36.  * <p>Java class for anonymous complex type.
  37.  *
  38.  * <p>The following schema fragment specifies the expected content contained within this class.
  39.  *
  40.  * <pre>
  41.  * &lt;complexType>
  42.  *   &lt;complexContent>
  43.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  44.  *       &lt;sequence>
  45.  *         &lt;element name="ExchangeCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
  46.  *         &lt;element name="CombinedContract" type="{http://www.w3.org/2001/XMLSchema}string"/>
  47.  *         &lt;element name="TierNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
  48.  *         &lt;element name="SpreadSide" type="{http://www.w3.org/2001/XMLSchema}string"/>
  49.  *         &lt;element name="Credit" type="{http://www.w3.org/2001/XMLSchema}string"/>
  50.  *         &lt;element name="DeltaRatio" type="{http://www.w3.org/2001/XMLSchema}string"/>
  51.  *         &lt;element name="FuturesPriceRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
  52.  *         &lt;element name="PairedLine" type="{http://www.w3.org/2001/XMLSchema}string"/>
  53.  *         &lt;element name="PortfolioRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
  54.  *         &lt;element name="RemainingDelta" type="{http://www.w3.org/2001/XMLSchema}string"/>
  55.  *         &lt;element name="ScanningRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
  56.  *         &lt;element name="TimeRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
  57.  *         &lt;element name="VolatilityRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
  58.  *         &lt;element name="WeightedFuturesPriceRisk" type="{http://www.w3.org/2001/XMLSchema}string"/>
  59.  *         &lt;element name="WfprDelta" type="{http://www.w3.org/2001/XMLSchema}string"/>
  60.  *         &lt;element name="MarketSide" type="{http://www.w3.org/2001/XMLSchema}string"/>
  61.  *       &lt;/sequence>
  62.  *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
  63.  *     &lt;/restriction>
  64.  *   &lt;/complexContent>
  65.  * &lt;/complexType>
  66.  * </pre>
  67.  *
  68.  *
  69.  */
  70. @XmlAccessorType(XmlAccessType.FIELD)
  71. @XmlType(name = "", propOrder = {
  72.     "exchangeCode",
  73.     "combinedContract",
  74.     "tierNumber",
  75.     "spreadSide",
  76.     "credit",
  77.     "deltaRatio",
  78.     "futuresPriceRisk",
  79.     "pairedLine",
  80.     "portfolioRisk",
  81.     "remainingDelta",
  82.     "scanningRisk",
  83.     "timeRisk",
  84.     "volatilityRisk",
  85.     "weightedFuturesPriceRisk",
  86.     "wfprDelta",
  87.     "marketSide"
  88. })
  89. @XmlRootElement(name = "Leg")
  90. @Entity(name = "Leg")
  91. @Table(name = "SPAN_LEG")
  92. @Inheritance(strategy = InheritanceType.JOINED)
  93. public class Leg
  94.     implements Equals, HashCode
  95. {
  96.  
  97.     @XmlElement(name = "ExchangeCode", required = true)
  98.     protected String exchangeCode;
  99.     @XmlElement(name = "CombinedContract", required = true)
  100.     protected String combinedContract;
  101.     @XmlElement(name = "TierNumber", required = true)
  102.     protected String tierNumber;
  103.     @XmlElement(name = "SpreadSide", required = true)
  104.     protected String spreadSide;
  105.     @XmlElement(name = "Credit", required = true)
  106.     protected String credit;
  107.     @XmlElement(name = "DeltaRatio", required = true)
  108.     protected String deltaRatio;
  109.     @XmlElement(name = "FuturesPriceRisk", required = true)
  110.     protected String futuresPriceRisk;
  111.     @XmlElement(name = "PairedLine", required = true)
  112.     protected String pairedLine;
  113.     @XmlElement(name = "PortfolioRisk", required = true)
  114.     protected String portfolioRisk;
  115.     @XmlElement(name = "RemainingDelta", required = true)
  116.     protected String remainingDelta;
  117.     @XmlElement(name = "ScanningRisk", required = true)
  118.     protected String scanningRisk;
  119.     @XmlElement(name = "TimeRisk", required = true)
  120.     protected String timeRisk;
  121.     @XmlElement(name = "VolatilityRisk", required = true)
  122.     protected String volatilityRisk;
  123.     @XmlElement(name = "WeightedFuturesPriceRisk", required = true)
  124.     protected String weightedFuturesPriceRisk;
  125.     @XmlElement(name = "WfprDelta", required = true)
  126.     protected String wfprDelta;
  127.     @XmlElement(name = "MarketSide", required = true)
  128.     protected String marketSide;
  129.     @XmlAttribute
  130.     protected String id;
  131.     @XmlAttribute(name = "Hjid")
  132.     protected Long hjid;
  133.  
  134.     /**
  135.      * Gets the value of the exchangeCode property.
  136.      *
  137.      * @return
  138.      *     possible object is
  139.      *     {@link String }
  140.      *
  141.      */
  142.     @Basic
  143.     @Column(name = "EXCHANGECODE", length = 255)
  144.     public String getExchangeCode() {
  145.         return exchangeCode;
  146.     }
  147.  
  148.     /**
  149.      * Sets the value of the exchangeCode property.
  150.      *
  151.      * @param value
  152.      *     allowed object is
  153.      *     {@link String }
  154.      *
  155.      */
  156.     public void setExchangeCode(String value) {
  157.         this.exchangeCode = value;
  158.     }
  159.  
  160.     /**
  161.      * Gets the value of the combinedContract property.
  162.      *
  163.      * @return
  164.      *     possible object is
  165.      *     {@link String }
  166.      *
  167.      */
  168.     @Basic
  169.     @Column(name = "COMBINEDCONTRACT", length = 255)
  170.     public String getCombinedContract() {
  171.         return combinedContract;
  172.     }
  173.  
  174.     /**
  175.      * Sets the value of the combinedContract property.
  176.      *
  177.      * @param value
  178.      *     allowed object is
  179.      *     {@link String }
  180.      *
  181.      */
  182.     public void setCombinedContract(String value) {
  183.         this.combinedContract = value;
  184.     }
  185.  
  186.     /**
  187.      * Gets the value of the tierNumber property.
  188.      *
  189.      * @return
  190.      *     possible object is
  191.      *     {@link String }
  192.      *
  193.      */
  194.     @Basic
  195.     @Column(name = "TIERNUMBER", length = 255)
  196.     public String getTierNumber() {
  197.         return tierNumber;
  198.     }
  199.  
  200.     /**
  201.      * Sets the value of the tierNumber property.
  202.      *
  203.      * @param value
  204.      *     allowed object is
  205.      *     {@link String }
  206.      *
  207.      */
  208.     public void setTierNumber(String value) {
  209.         this.tierNumber = value;
  210.     }
  211.  
  212.     /**
  213.      * Gets the value of the spreadSide property.
  214.      *
  215.      * @return
  216.      *     possible object is
  217.      *     {@link String }
  218.      *
  219.      */
  220.     @Basic
  221.     @Column(name = "SPREADSIDE", length = 255)
  222.     public String getSpreadSide() {
  223.         return spreadSide;
  224.     }
  225.  
  226.     /**
  227.      * Sets the value of the spreadSide property.
  228.      *
  229.      * @param value
  230.      *     allowed object is
  231.      *     {@link String }
  232.      *
  233.      */
  234.     public void setSpreadSide(String value) {
  235.         this.spreadSide = value;
  236.     }
  237.  
  238.     /**
  239.      * Gets the value of the credit property.
  240.      *
  241.      * @return
  242.      *     possible object is
  243.      *     {@link String }
  244.      *
  245.      */
  246.     @Basic
  247.     @Column(name = "CREDIT", length = 255)
  248.     public String getCredit() {
  249.         return credit;
  250.     }
  251.  
  252.     /**
  253.      * Sets the value of the credit property.
  254.      *
  255.      * @param value
  256.      *     allowed object is
  257.      *     {@link String }
  258.      *
  259.      */
  260.     public void setCredit(String value) {
  261.         this.credit = value;
  262.     }
  263.  
  264.     /**
  265.      * Gets the value of the deltaRatio property.
  266.      *
  267.      * @return
  268.      *     possible object is
  269.      *     {@link String }
  270.      *
  271.      */
  272.     @Basic
  273.     @Column(name = "DELTARATIO", length = 255)
  274.     public String getDeltaRatio() {
  275.         return deltaRatio;
  276.     }
  277.  
  278.     /**
  279.      * Sets the value of the deltaRatio property.
  280.      *
  281.      * @param value
  282.      *     allowed object is
  283.      *     {@link String }
  284.      *
  285.      */
  286.     public void setDeltaRatio(String value) {
  287.         this.deltaRatio = value;
  288.     }
  289.  
  290.     /**
  291.      * Gets the value of the futuresPriceRisk property.
  292.      *
  293.      * @return
  294.      *     possible object is
  295.      *     {@link String }
  296.      *
  297.      */
  298.     @Basic
  299.     @Column(name = "FUTURESPRICERISK", length = 255)
  300.     public String getFuturesPriceRisk() {
  301.         return futuresPriceRisk;
  302.     }
  303.  
  304.     /**
  305.      * Sets the value of the futuresPriceRisk property.
  306.      *
  307.      * @param value
  308.      *     allowed object is
  309.      *     {@link String }
  310.      *
  311.      */
  312.     public void setFuturesPriceRisk(String value) {
  313.         this.futuresPriceRisk = value;
  314.     }
  315.  
  316.     /**
  317.      * Gets the value of the pairedLine property.
  318.      *
  319.      * @return
  320.      *     possible object is
  321.      *     {@link String }
  322.      *
  323.      */
  324.     @Basic
  325.     @Column(name = "PAIREDLINE", length = 255)
  326.     public String getPairedLine() {
  327.         return pairedLine;
  328.     }
  329.  
  330.     /**
  331.      * Sets the value of the pairedLine property.
  332.      *
  333.      * @param value
  334.      *     allowed object is
  335.      *     {@link String }
  336.      *
  337.      */
  338.     public void setPairedLine(String value) {
  339.         this.pairedLine = value;
  340.     }
  341.  
  342.     /**
  343.      * Gets the value of the portfolioRisk property.
  344.      *
  345.      * @return
  346.      *     possible object is
  347.      *     {@link String }
  348.      *
  349.      */
  350.     @Basic
  351.     @Column(name = "PORTFOLIORISK", length = 255)
  352.     public String getPortfolioRisk() {
  353.         return portfolioRisk;
  354.     }
  355.  
  356.     /**
  357.      * Sets the value of the portfolioRisk property.
  358.      *
  359.      * @param value
  360.      *     allowed object is
  361.      *     {@link String }
  362.      *
  363.      */
  364.     public void setPortfolioRisk(String value) {
  365.         this.portfolioRisk = value;
  366.     }
  367.  
  368.     /**
  369.      * Gets the value of the remainingDelta property.
  370.      *
  371.      * @return
  372.      *     possible object is
  373.      *     {@link String }
  374.      *
  375.      */
  376.     @Basic
  377.     @Column(name = "REMAININGDELTA", length = 255)
  378.     public String getRemainingDelta() {
  379.         return remainingDelta;
  380.     }
  381.  
  382.     /**
  383.      * Sets the value of the remainingDelta property.
  384.      *
  385.      * @param value
  386.      *     allowed object is
  387.      *     {@link String }
  388.      *
  389.      */
  390.     public void setRemainingDelta(String value) {
  391.         this.remainingDelta = value;
  392.     }
  393.  
  394.     /**
  395.      * Gets the value of the scanningRisk property.
  396.      *
  397.      * @return
  398.      *     possible object is
  399.      *     {@link String }
  400.      *
  401.      */
  402.     @Basic
  403.     @Column(name = "SCANNINGRISK", length = 255)
  404.     public String getScanningRisk() {
  405.         return scanningRisk;
  406.     }
  407.  
  408.     /**
  409.      * Sets the value of the scanningRisk property.
  410.      *
  411.      * @param value
  412.      *     allowed object is
  413.      *     {@link String }
  414.      *
  415.      */
  416.     public void setScanningRisk(String value) {
  417.         this.scanningRisk = value;
  418.     }
  419.  
  420.     /**
  421.      * Gets the value of the timeRisk property.
  422.      *
  423.      * @return
  424.      *     possible object is
  425.      *     {@link String }
  426.      *
  427.      */
  428.     @Basic
  429.     @Column(name = "TIMERISK", length = 255)
  430.     public String getTimeRisk() {
  431.         return timeRisk;
  432.     }
  433.  
  434.     /**
  435.      * Sets the value of the timeRisk property.
  436.      *
  437.      * @param value
  438.      *     allowed object is
  439.      *     {@link String }
  440.      *
  441.      */
  442.     public void setTimeRisk(String value) {
  443.         this.timeRisk = value;
  444.     }
  445.  
  446.     /**
  447.      * Gets the value of the volatilityRisk property.
  448.      *
  449.      * @return
  450.      *     possible object is
  451.      *     {@link String }
  452.      *
  453.      */
  454.     @Basic
  455.     @Column(name = "VOLATILITYRISK", length = 255)
  456.     public String getVolatilityRisk() {
  457.         return volatilityRisk;
  458.     }
  459.  
  460.     /**
  461.      * Sets the value of the volatilityRisk property.
  462.      *
  463.      * @param value
  464.      *     allowed object is
  465.      *     {@link String }
  466.      *
  467.      */
  468.     public void setVolatilityRisk(String value) {
  469.         this.volatilityRisk = value;
  470.     }
  471.  
  472.     /**
  473.      * Gets the value of the weightedFuturesPriceRisk property.
  474.      *
  475.      * @return
  476.      *     possible object is
  477.      *     {@link String }
  478.      *
  479.      */
  480.     @Basic
  481.     @Column(name = "WEIGHTEDFUTURESPRICERISK", length = 255)
  482.     public String getWeightedFuturesPriceRisk() {
  483.         return weightedFuturesPriceRisk;
  484.     }
  485.  
  486.     /**
  487.      * Sets the value of the weightedFuturesPriceRisk property.
  488.      *
  489.      * @param value
  490.      *     allowed object is
  491.      *     {@link String }
  492.      *
  493.      */
  494.     public void setWeightedFuturesPriceRisk(String value) {
  495.         this.weightedFuturesPriceRisk = value;
  496.     }
  497.  
  498.     /**
  499.      * Gets the value of the wfprDelta property.
  500.      *
  501.      * @return
  502.      *     possible object is
  503.      *     {@link String }
  504.      *
  505.      */
  506.     @Basic
  507.     @Column(name = "WFPRDELTA", length = 255)
  508.     public String getWfprDelta() {
  509.         return wfprDelta;
  510.     }
  511.  
  512.     /**
  513.      * Sets the value of the wfprDelta property.
  514.      *
  515.      * @param value
  516.      *     allowed object is
  517.      *     {@link String }
  518.      *
  519.      */
  520.     public void setWfprDelta(String value) {
  521.         this.wfprDelta = value;
  522.     }
  523.  
  524.     /**
  525.      * Gets the value of the marketSide property.
  526.      *
  527.      * @return
  528.      *     possible object is
  529.      *     {@link String }
  530.      *
  531.      */
  532.     @Basic
  533.     @Column(name = "MARKETSIDE", length = 255)
  534.     public String getMarketSide() {
  535.         return marketSide;
  536.     }
  537.  
  538.     /**
  539.      * Sets the value of the marketSide property.
  540.      *
  541.      * @param value
  542.      *     allowed object is
  543.      *     {@link String }
  544.      *
  545.      */
  546.     public void setMarketSide(String value) {
  547.         this.marketSide = value;
  548.     }
  549.  
  550.     /**
  551.      * Gets the value of the id property.
  552.      *
  553.      * @return
  554.      *     possible object is
  555.      *     {@link String }
  556.      *
  557.      */
  558.     @Basic
  559.     @Column(name = "ID", length = 255)
  560.     public String getId() {
  561.         return id;
  562.     }
  563.  
  564.     /**
  565.      * Sets the value of the id property.
  566.      *
  567.      * @param value
  568.      *     allowed object is
  569.      *     {@link String }
  570.      *
  571.      */
  572.     public void setId(String value) {
  573.         this.id = value;
  574.     }
  575.  
  576.     /**
  577.      * Gets the value of the hjid property.
  578.      *
  579.      * @return
  580.      *     possible object is
  581.      *     {@link Long }
  582.      *
  583.      */
  584.     @Id
  585.     @Column(name = "HJID")
  586.     @GeneratedValue(generator = "marginserviceseq20") @GenericGenerator(name = "marginserviceseq20", strategy = "increment")
  587.     public Long getHjid() {
  588.         return hjid;
  589.     }
  590.  
  591.     /**
  592.      * Sets the value of the hjid property.
  593.      *
  594.      * @param value
  595.      *     allowed object is
  596.      *     {@link Long }
  597.      *
  598.      */
  599.     public void setHjid(Long value) {
  600.         this.hjid = value;
  601.     }
  602.  
  603.     public void equals(Object object, EqualsBuilder equalsBuilder) {
  604.         if (!(object instanceof Leg)) {
  605.             equalsBuilder.appendSuper(false);
  606.             return ;
  607.         }
  608.         if (this == object) {
  609.             return ;
  610.         }
  611.         final Leg that = ((Leg) object);
  612.         equalsBuilder.append(this.getExchangeCode(), that.getExchangeCode());
  613.         equalsBuilder.append(this.getCombinedContract(), that.getCombinedContract());
  614.         equalsBuilder.append(this.getTierNumber(), that.getTierNumber());
  615.         equalsBuilder.append(this.getSpreadSide(), that.getSpreadSide());
  616.         equalsBuilder.append(this.getCredit(), that.getCredit());
  617.         equalsBuilder.append(this.getDeltaRatio(), that.getDeltaRatio());
  618.         equalsBuilder.append(this.getFuturesPriceRisk(), that.getFuturesPriceRisk());
  619.         equalsBuilder.append(this.getPairedLine(), that.getPairedLine());
  620.         equalsBuilder.append(this.getPortfolioRisk(), that.getPortfolioRisk());
  621.         equalsBuilder.append(this.getRemainingDelta(), that.getRemainingDelta());
  622.         equalsBuilder.append(this.getScanningRisk(), that.getScanningRisk());
  623.         equalsBuilder.append(this.getTimeRisk(), that.getTimeRisk());
  624.         equalsBuilder.append(this.getVolatilityRisk(), that.getVolatilityRisk());
  625.         equalsBuilder.append(this.getWeightedFuturesPriceRisk(), that.getWeightedFuturesPriceRisk());
  626.         equalsBuilder.append(this.getWfprDelta(), that.getWfprDelta());
  627.         equalsBuilder.append(this.getMarketSide(), that.getMarketSide());
  628.         equalsBuilder.append(this.getId(), that.getId());
  629.     }
  630.  
  631.     public boolean equals(Object object) {
  632.         if (!(object instanceof Leg)) {
  633.             return false;
  634.         }
  635.         if (this == object) {
  636.             return true;
  637.         }
  638.         final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  639.         equals(object, equalsBuilder);
  640.         return equalsBuilder.isEquals();
  641.     }
  642.  
  643.     public void hashCode(HashCodeBuilder hashCodeBuilder) {
  644.         hashCodeBuilder.append(this.getExchangeCode());
  645.         hashCodeBuilder.append(this.getCombinedContract());
  646.         hashCodeBuilder.append(this.getTierNumber());
  647.         hashCodeBuilder.append(this.getSpreadSide());
  648.         hashCodeBuilder.append(this.getCredit());
  649.         hashCodeBuilder.append(this.getDeltaRatio());
  650.         hashCodeBuilder.append(this.getFuturesPriceRisk());
  651.         hashCodeBuilder.append(this.getPairedLine());
  652.         hashCodeBuilder.append(this.getPortfolioRisk());
  653.         hashCodeBuilder.append(this.getRemainingDelta());
  654.         hashCodeBuilder.append(this.getScanningRisk());
  655.         hashCodeBuilder.append(this.getTimeRisk());
  656.         hashCodeBuilder.append(this.getVolatilityRisk());
  657.         hashCodeBuilder.append(this.getWeightedFuturesPriceRisk());
  658.         hashCodeBuilder.append(this.getWfprDelta());
  659.         hashCodeBuilder.append(this.getMarketSide());
  660.         hashCodeBuilder.append(this.getId());
  661.     }
  662.  
  663.     public int hashCode() {
  664.         final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  665.         hashCode(hashCodeBuilder);
  666.         return hashCodeBuilder.toHashCode();
  667.     }
  668.  
  669. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement