Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.a.b.domain.model.span;
- import java.util.ArrayList;
- import java.util.List;
- import javax.persistence.*;
- 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;
- import org.hibernate.annotations.Cache;
- import org.hibernate.annotations.CacheConcurrencyStrategy;
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "businessDate",
- "generated",
- "account",
- "requirementId"
- })
- @XmlRootElement(name = "Results")
- @Entity(name = "Results")
- @Table(name = "SPAN_RESULT")
- @Inheritance(strategy = InheritanceType.JOINED)
- @Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
- public class Results
- implements Equals, HashCode
- {
- @XmlElement(name = "BusinessDate", required = true)
- @Transient()
- protected Results.BusinessDate businessDate;
- @XmlElement(name = "Generated", required = true)
- protected Results.Generated generated;
- @XmlElement(name = "Account", required = true)
- protected List<Results.Account> account;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- protected Long requirementId;
- @Basic
- @Column(name = "REQUIREMENT_ID", nullable = false)
- public Long getRequirementId() {
- return requirementId;
- }
- public void setRequirementId(Long requirementId) {
- this.requirementId = requirementId;
- }
- /**
- * Gets the value of the businessDate property.
- *
- * @return
- * possible object is
- * {@link Results.BusinessDate }
- *
- */
- /*
- @ManyToOne(targetEntity = Results.BusinessDate.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "BUSINESSDATE_RESULTS_HJID")
- */
- public Results.BusinessDate getBusinessDate() {
- return businessDate;
- }
- /**
- * Sets the value of the businessDate property.
- *
- * @param value
- * allowed object is
- * {@link Results.BusinessDate }
- *
- */
- public void setBusinessDate(Results.BusinessDate value) {
- this.businessDate = value;
- }
- /**
- * Gets the value of the generated property.
- *
- * @return
- * possible object is
- * {@link Results.Generated }
- *
- */
- @ManyToOne(targetEntity = Results.Generated.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "GENERATED_RESULTS_HJID")
- public Results.Generated getGenerated() {
- return generated;
- }
- /**
- * Sets the value of the generated property.
- *
- * @param value
- * allowed object is
- * {@link Results.Generated }
- *
- */
- public void setGenerated(Results.Generated value) {
- this.generated = value;
- }
- /**
- * Gets the value of the account property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the account property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAccount().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Results.Account }
- *
- *
- */
- @OneToMany(targetEntity = Results.Account.class)
- @JoinColumn(name = "RESULT_ID")
- public List<Results.Account> getAccount() {
- if (account == null) {
- account = new ArrayList<Results.Account>();
- }
- return this.account;
- }
- /**
- *
- *
- */
- public void setAccount(List<Results.Account> account) {
- this.account = account;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- @Id
- @Column(name = "RESULT_ID")
- @GeneratedValue(generator = "marginserviceseq21") @GenericGenerator(name = "marginserviceseq21", 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 Results)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results that = ((Results) object);
- equalsBuilder.append(this.getBusinessDate(), that.getBusinessDate());
- equalsBuilder.append(this.getGenerated(), that.getGenerated());
- equalsBuilder.append(this.getAccount(), that.getAccount());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results)) {
- 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.getBusinessDate());
- hashCodeBuilder.append(this.getGenerated());
- hashCodeBuilder.append(this.getAccount());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "name",
- "summary",
- "marginGroup",
- "clearingMemberAcctNbr"
- })
- @Entity(name = "Results$Account")
- @Table(name = "SPAN_ACCOUNT")
- @Inheritance(strategy = InheritanceType.JOINED)
- public static class Account
- implements Equals, HashCode
- {
- @XmlElement(name = "Name", required = true)
- protected String name;
- @XmlElement(name = "Summary", required = true)
- protected Summary summary;
- @XmlElement(name = "MarginGroup", required = true)
- protected Results.Account.MarginGroup marginGroup;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- @XmlAttribute(name = "ClearingMemberAcctNbr")
- protected String clearingMemberAcctNbr;
- @Basic
- @Column(name = "CLEARING_MEMBER_ACCT_NBR", length = 64)
- public String getClearingMemberAcctNbr() {
- return clearingMemberAcctNbr;
- }
- public void setClearingMemberAcctNbr(String clearingMemberAcctNbr) {
- this.clearingMemberAcctNbr = clearingMemberAcctNbr;
- }
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "SETTLEMENT_ACCT_NBR", length = 255)
- public String getName() {
- return name;
- }
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
- /**
- * Gets the value of the summary property.
- *
- * @return
- * possible object is
- * {@link Summary }
- *
- */
- @ManyToOne(targetEntity = Summary.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "SUMMARY_ID")
- public Summary getSummary() {
- return summary;
- }
- /**
- * Sets the value of the summary property.
- *
- * @param value
- * allowed object is
- * {@link Summary }
- *
- */
- public void setSummary(Summary value) {
- this.summary = value;
- }
- /**
- * Gets the value of the marginGroup property.
- *
- * @return
- * possible object is
- * {@link Results.Account.MarginGroup }
- *
- */
- @ManyToOne(targetEntity = Results.Account.MarginGroup.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "MARGINGROUP_ID")
- public Results.Account.MarginGroup getMarginGroup() {
- return marginGroup;
- }
- /**
- * Sets the value of the marginGroup property.
- *
- * @param value
- * allowed object is
- * {@link Results.Account.MarginGroup }
- *
- */
- public void setMarginGroup(Results.Account.MarginGroup value) {
- this.marginGroup = value;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- @Id
- @Column(name = "ACCOUNT_ID")
- @GeneratedValue(generator = "marginserviceseq22") @GenericGenerator(name = "marginserviceseq22", 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 Results.Account)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.Account that = ((Results.Account) object);
- equalsBuilder.append(this.getName(), that.getName());
- equalsBuilder.append(this.getSummary(), that.getSummary());
- equalsBuilder.append(this.getMarginGroup(), that.getMarginGroup());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.Account)) {
- 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.getName());
- hashCodeBuilder.append(this.getSummary());
- hashCodeBuilder.append(this.getMarginGroup());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "description",
- "summary",
- "intercontractSpread",
- "exchange"
- })
- @Entity(name = "Results$Account$MarginGroup")
- @Table(name = "SPAN_MARGINGROUP")
- @Inheritance(strategy = InheritanceType.JOINED)
- public static class MarginGroup
- implements Equals, HashCode
- {
- @XmlElement(name = "Description", required = true)
- protected String description;
- @XmlElement(name = "Summary", required = true)
- protected Summary summary;
- @XmlElement(name = "IntercontractSpread")
- protected List<Results.Account.MarginGroup.IntercontractSpread> intercontractSpread;
- @XmlElement(name = "Exchange", required = true)
- protected Results.Account.MarginGroup.Exchange exchange;
- @XmlAttribute(required = true)
- protected String id;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "DESCRIPTION", length = 255)
- public String getDescription() {
- return description;
- }
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDescription(String value) {
- this.description = value;
- }
- /**
- * Gets the value of the summary property.
- *
- * @return
- * possible object is
- * {@link Summary }
- *
- */
- @ManyToOne(targetEntity = Summary.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "SUMMARY_MARGINGROUP_HJID")
- public Summary getSummary() {
- return summary;
- }
- /**
- * Sets the value of the summary property.
- *
- * @param value
- * allowed object is
- * {@link Summary }
- *
- */
- public void setSummary(Summary value) {
- this.summary = value;
- }
- /**
- * Gets the value of the intercontractSpread property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the intercontractSpread property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getIntercontractSpread().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Results.Account.MarginGroup.IntercontractSpread }
- *
- *
- */
- @OneToMany(targetEntity = Results.Account.MarginGroup.IntercontractSpread.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "INTERCONTRACTSPREAD_MARGINGR_0")
- public List<Results.Account.MarginGroup.IntercontractSpread> getIntercontractSpread() {
- if (intercontractSpread == null) {
- intercontractSpread = new ArrayList<Results.Account.MarginGroup.IntercontractSpread>();
- }
- return this.intercontractSpread;
- }
- /**
- *
- *
- */
- public void setIntercontractSpread(List<Results.Account.MarginGroup.IntercontractSpread> intercontractSpread) {
- this.intercontractSpread = intercontractSpread;
- }
- /**
- * Gets the value of the exchange property.
- *
- * @return
- * possible object is
- * {@link Results.Account.MarginGroup.Exchange }
- *
- */
- @ManyToOne(targetEntity = Results.Account.MarginGroup.Exchange.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "EXCHANGE_MARGINGROUP_HJID")
- public Results.Account.MarginGroup.Exchange getExchange() {
- return exchange;
- }
- /**
- * Sets the value of the exchange property.
- *
- * @param value
- * allowed object is
- * {@link Results.Account.MarginGroup.Exchange }
- *
- */
- public void setExchange(Results.Account.MarginGroup.Exchange value) {
- this.exchange = 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 = "marginserviceseq23") @GenericGenerator(name = "marginserviceseq23", 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 Results.Account.MarginGroup)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.Account.MarginGroup that = ((Results.Account.MarginGroup) object);
- equalsBuilder.append(this.getDescription(), that.getDescription());
- equalsBuilder.append(this.getSummary(), that.getSummary());
- equalsBuilder.append(this.getIntercontractSpread(), that.getIntercontractSpread());
- equalsBuilder.append(this.getExchange(), that.getExchange());
- equalsBuilder.append(this.getId(), that.getId());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.Account.MarginGroup)) {
- 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.getDescription());
- hashCodeBuilder.append(this.getSummary());
- hashCodeBuilder.append(this.getIntercontractSpread());
- hashCodeBuilder.append(this.getExchange());
- hashCodeBuilder.append(this.getId());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- /**
- * <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 ref="{}Description"/>
- * <element ref="{}Summary"/>
- * <element ref="{}CombinedContract" maxOccurs="unbounded"/>
- * </sequence>
- * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "description",
- "summary",
- "combinedContract"
- })
- @Entity(name = "Results$Account$MarginGroup$Exchange")
- @Table(name = "SPAN_EXCHANGE")
- @Inheritance(strategy = InheritanceType.JOINED)
- public static class Exchange
- implements Equals, HashCode
- {
- @XmlElement(name = "Description", required = true)
- protected String description;
- @XmlElement(name = "Summary", required = true)
- protected Summary summary;
- @XmlElement(name = "CombinedContract", required = true)
- protected List<CombinedContract> combinedContract;
- @XmlAttribute(required = true)
- protected String id;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "DESCRIPTION", length = 255)
- public String getDescription() {
- return description;
- }
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDescription(String value) {
- this.description = value;
- }
- /**
- * Gets the value of the summary property.
- *
- * @return
- * possible object is
- * {@link Summary }
- *
- */
- @ManyToOne(targetEntity = Summary.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "SUMMARY_EXCHANGE_HJID")
- public Summary getSummary() {
- return summary;
- }
- /**
- * Sets the value of the summary property.
- *
- * @param value
- * allowed object is
- * {@link Summary }
- *
- */
- public void setSummary(Summary value) {
- this.summary = value;
- }
- /**
- * Gets the value of the combinedContract property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the combinedContract property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getCombinedContract().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link CombinedContract }
- *
- *
- */
- @OneToMany(targetEntity = CombinedContract.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "COMBINEDCONTRACT_EXCHANGE_HJ_0")
- public List<CombinedContract> getCombinedContract() {
- if (combinedContract == null) {
- combinedContract = new ArrayList<CombinedContract>();
- }
- return this.combinedContract;
- }
- /**
- *
- *
- */
- public void setCombinedContract(List<CombinedContract> combinedContract) {
- this.combinedContract = combinedContract;
- }
- /**
- * 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 = "marginserviceseq24") @GenericGenerator(name = "marginserviceseq24", 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 Results.Account.MarginGroup.Exchange)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.Account.MarginGroup.Exchange that = ((Results.Account.MarginGroup.Exchange) object);
- equalsBuilder.append(this.getDescription(), that.getDescription());
- equalsBuilder.append(this.getSummary(), that.getSummary());
- equalsBuilder.append(this.getCombinedContract(), that.getCombinedContract());
- equalsBuilder.append(this.getId(), that.getId());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.Account.MarginGroup.Exchange)) {
- 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.getDescription());
- hashCodeBuilder.append(this.getSummary());
- hashCodeBuilder.append(this.getCombinedContract());
- hashCodeBuilder.append(this.getId());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- }
- /**
- * <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="ContractGroup" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="Priority" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="Method" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="CreditRate" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="OffsetRate" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="OffsetCharge" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="PercentageSaving" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="Spreads" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element ref="{}Leg" maxOccurs="unbounded"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "contractGroup",
- "priority",
- "method",
- "creditRate",
- "offsetRate",
- "offsetCharge",
- "percentageSaving",
- "spreads",
- "leg"
- })
- @Entity(name = "Results$Account$MarginGroup$IntercontractSpread")
- @Table(name = "SPAN_INTERCONTRACTSPREAD")
- @Inheritance(strategy = InheritanceType.JOINED)
- public static class IntercontractSpread
- implements Equals, HashCode
- {
- @XmlElement(name = "ContractGroup", required = true)
- protected String contractGroup;
- @XmlElement(name = "Priority", required = true)
- protected String priority;
- @XmlElement(name = "Method", required = true)
- protected String method;
- @XmlElement(name = "CreditRate", required = true)
- protected String creditRate;
- @XmlElement(name = "OffsetRate", required = true)
- protected String offsetRate;
- @XmlElement(name = "OffsetCharge", required = true)
- protected String offsetCharge;
- @XmlElement(name = "PercentageSaving", required = true)
- protected String percentageSaving;
- @XmlElement(name = "Spreads", required = true)
- protected String spreads;
- @XmlElement(name = "Leg", required = true)
- protected List<Leg> leg;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the contractGroup property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "CONTRACTGROUP", length = 255)
- public String getContractGroup() {
- return contractGroup;
- }
- /**
- * Sets the value of the contractGroup property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setContractGroup(String value) {
- this.contractGroup = value;
- }
- /**
- * Gets the value of the priority property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "PRIORITY", length = 255)
- public String getPriority() {
- return priority;
- }
- /**
- * Sets the value of the priority property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setPriority(String value) {
- this.priority = value;
- }
- /**
- * Gets the value of the method property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "METHOD_", length = 255)
- public String getMethod() {
- return method;
- }
- /**
- * Sets the value of the method property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMethod(String value) {
- this.method = value;
- }
- /**
- * Gets the value of the creditRate property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "CREDITRATE", length = 255)
- public String getCreditRate() {
- return creditRate;
- }
- /**
- * Sets the value of the creditRate property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCreditRate(String value) {
- this.creditRate = value;
- }
- /**
- * Gets the value of the offsetRate property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "OFFSETRATE", length = 255)
- public String getOffsetRate() {
- return offsetRate;
- }
- /**
- * Sets the value of the offsetRate property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setOffsetRate(String value) {
- this.offsetRate = value;
- }
- /**
- * Gets the value of the offsetCharge property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "OFFSETCHARGE", length = 255)
- public String getOffsetCharge() {
- return offsetCharge;
- }
- /**
- * Sets the value of the offsetCharge property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setOffsetCharge(String value) {
- this.offsetCharge = value;
- }
- /**
- * Gets the value of the percentageSaving property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "PERCENTAGESAVING", length = 255)
- public String getPercentageSaving() {
- return percentageSaving;
- }
- /**
- * Sets the value of the percentageSaving property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setPercentageSaving(String value) {
- this.percentageSaving = value;
- }
- /**
- * Gets the value of the spreads property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "SPREADS", length = 255)
- public String getSpreads() {
- return spreads;
- }
- /**
- * Sets the value of the spreads property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setSpreads(String value) {
- this.spreads = value;
- }
- /**
- * Gets the value of the leg property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the leg property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getLeg().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Leg }
- *
- *
- */
- @OneToMany(targetEntity = Leg.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "LEG_INTERCONTRACTSPREAD_HJID")
- public List<Leg> getLeg() {
- if (leg == null) {
- leg = new ArrayList<Leg>();
- }
- return this.leg;
- }
- /**
- *
- *
- */
- public void setLeg(List<Leg> leg) {
- this.leg = leg;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- @Id
- @Column(name = "HJID")
- @GeneratedValue(generator = "marginserviceseq25") @GenericGenerator(name = "marginserviceseq25", 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 Results.Account.MarginGroup.IntercontractSpread)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.Account.MarginGroup.IntercontractSpread that = ((Results.Account.MarginGroup.IntercontractSpread) object);
- equalsBuilder.append(this.getContractGroup(), that.getContractGroup());
- equalsBuilder.append(this.getPriority(), that.getPriority());
- equalsBuilder.append(this.getMethod(), that.getMethod());
- equalsBuilder.append(this.getCreditRate(), that.getCreditRate());
- equalsBuilder.append(this.getOffsetRate(), that.getOffsetRate());
- equalsBuilder.append(this.getOffsetCharge(), that.getOffsetCharge());
- equalsBuilder.append(this.getPercentageSaving(), that.getPercentageSaving());
- equalsBuilder.append(this.getSpreads(), that.getSpreads());
- equalsBuilder.append(this.getLeg(), that.getLeg());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.Account.MarginGroup.IntercontractSpread)) {
- 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.getContractGroup());
- hashCodeBuilder.append(this.getPriority());
- hashCodeBuilder.append(this.getMethod());
- hashCodeBuilder.append(this.getCreditRate());
- hashCodeBuilder.append(this.getOffsetRate());
- hashCodeBuilder.append(this.getOffsetCharge());
- hashCodeBuilder.append(this.getPercentageSaving());
- hashCodeBuilder.append(this.getSpreads());
- hashCodeBuilder.append(this.getLeg());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- }
- }
- }
- /**
- * <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 ref="{}Raw"/>
- * <element ref="{}Display"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "raw",
- "display"
- })
- /*
- @Entity(name = "Results$BusinessDate")
- @Table(name = "SPAN_BUSINESSDATE")
- @Inheritance(strategy = InheritanceType.JOINED)
- */
- public static class BusinessDate
- implements Equals, HashCode
- {
- @XmlElement(name = "Raw", required = true)
- protected String raw;
- @XmlElement(name = "Display", required = true)
- protected String display;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the raw property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- /*
- @Basic
- @Column(name = "RAW_", length = 255)
- */
- public String getRaw() {
- return raw;
- }
- /**
- * Sets the value of the raw property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRaw(String value) {
- this.raw = value;
- }
- /**
- * Gets the value of the display property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- /*
- @Basic
- @Column(name = "DISPLAY", length = 255)
- */
- public String getDisplay() {
- return display;
- }
- /**
- * Sets the value of the display property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDisplay(String value) {
- this.display = value;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- /*
- @Id
- @Column(name = "HJID")
- @GeneratedValue(generator = "marginserviceseq26") @GenericGenerator(name = "marginserviceseq26", 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 Results.BusinessDate)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.BusinessDate that = ((Results.BusinessDate) object);
- equalsBuilder.append(this.getRaw(), that.getRaw());
- equalsBuilder.append(this.getDisplay(), that.getDisplay());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.BusinessDate)) {
- 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.getRaw());
- hashCodeBuilder.append(this.getDisplay());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- }
- /**
- * <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="Date">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element ref="{}Raw"/>
- * <element ref="{}Display"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * <element name="Time" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "date",
- "time"
- })
- @Entity(name = "Results$Generated")
- @Table(name = "SPAN_GENERATED")
- @Inheritance(strategy = InheritanceType.JOINED)
- public static class Generated
- implements Equals, HashCode
- {
- @XmlElement(name = "Date", required = true)
- protected Results.Generated.Date date;
- @XmlElement(name = "Time", required = true)
- protected String time;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the date property.
- *
- * @return
- * possible object is
- * {@link Results.Generated.Date }
- *
- */
- @ManyToOne(targetEntity = Results.Generated.Date.class, cascade = {
- CascadeType.ALL
- })
- @JoinColumn(name = "DATE_GENERATED_HJID")
- public Results.Generated.Date getDate() {
- return date;
- }
- /**
- * Sets the value of the date property.
- *
- * @param value
- * allowed object is
- * {@link Results.Generated.Date }
- *
- */
- public void setDate(Results.Generated.Date value) {
- this.date = value;
- }
- /**
- * Gets the value of the time property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "TIME_", length = 255)
- public String getTime() {
- return time;
- }
- /**
- * Sets the value of the time property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTime(String value) {
- this.time = value;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- @Id
- @Column(name = "HJID")
- @GeneratedValue(generator = "marginserviceseq27") @GenericGenerator(name = "marginserviceseq27", 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 Results.Generated)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.Generated that = ((Results.Generated) object);
- equalsBuilder.append(this.getDate(), that.getDate());
- equalsBuilder.append(this.getTime(), that.getTime());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.Generated)) {
- 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.getDate());
- hashCodeBuilder.append(this.getTime());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- /**
- * <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 ref="{}Raw"/>
- * <element ref="{}Display"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "raw",
- "display"
- })
- @Entity(name = "Results$Generated$Date")
- @Table(name = "SPAN_DATE")
- @Inheritance(strategy = InheritanceType.JOINED)
- public static class Date
- implements Equals, HashCode
- {
- @XmlElement(name = "Raw", required = true)
- protected String raw;
- @XmlElement(name = "Display", required = true)
- protected String display;
- @XmlAttribute(name = "Hjid")
- protected Long hjid;
- /**
- * Gets the value of the raw property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "RAW_", length = 255)
- public String getRaw() {
- return raw;
- }
- /**
- * Sets the value of the raw property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRaw(String value) {
- this.raw = value;
- }
- /**
- * Gets the value of the display property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- @Basic
- @Column(name = "DISPLAY", length = 255)
- public String getDisplay() {
- return display;
- }
- /**
- * Sets the value of the display property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDisplay(String value) {
- this.display = value;
- }
- /**
- * Gets the value of the hjid property.
- *
- * @return
- * possible object is
- * {@link Long }
- *
- */
- @Id
- @Column(name = "HJID")
- @GeneratedValue(generator = "marginserviceseq28") @GenericGenerator(name = "marginserviceseq28", 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 Results.Generated.Date)) {
- equalsBuilder.appendSuper(false);
- return ;
- }
- if (this == object) {
- return ;
- }
- final Results.Generated.Date that = ((Results.Generated.Date) object);
- equalsBuilder.append(this.getRaw(), that.getRaw());
- equalsBuilder.append(this.getDisplay(), that.getDisplay());
- }
- public boolean equals(Object object) {
- if (!(object instanceof Results.Generated.Date)) {
- 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.getRaw());
- hashCodeBuilder.append(this.getDisplay());
- }
- public int hashCode() {
- final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
- hashCode(hashCodeBuilder);
- return hashCodeBuilder.toHashCode();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement