View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
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: 2017.04.23 at 07:22:42 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.external.riksdagen.dokumentstatus.impl;
10  
11  import java.io.Serializable;
12  import javax.persistence.Basic;
13  import javax.persistence.Column;
14  import javax.persistence.Entity;
15  import javax.persistence.GeneratedValue;
16  import javax.persistence.GenerationType;
17  import javax.persistence.Id;
18  import javax.persistence.Inheritance;
19  import javax.persistence.InheritanceType;
20  import javax.persistence.Table;
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlAttribute;
24  import javax.xml.bind.annotation.XmlElement;
25  import javax.xml.bind.annotation.XmlType;
26  import com.hack23.cia.model.common.api.ModelObject;
27  import org.jvnet.jaxb2_commons.lang.Equals;
28  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
29  import org.jvnet.jaxb2_commons.lang.HashCode;
30  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
31  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
32  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
33  import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
34  import org.jvnet.jaxb2_commons.lang.ToString;
35  import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
36  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
37  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
38  
39  
40  /**
41   * <p>Java class for DocumentProposalData complex type.
42   * 
43   * <p>The following schema fragment specifies the expected content contained within this class.
44   * 
45   * <pre>
46   * &lt;complexType name="DocumentProposalData"&gt;
47   *   &lt;complexContent&gt;
48   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
49   *       &lt;sequence&gt;
50   *         &lt;element name="nummer" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
51   *         &lt;element name="beteckning" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
52   *         &lt;element name="lydelse" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
53   *         &lt;element name="lydelse2" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
54   *         &lt;element name="lydelse3" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
55   *         &lt;element name="lydelse4" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
56   *         &lt;element name="utskottet" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
57   *         &lt;element name="kammaren" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
58   *         &lt;element name="behandlas_i" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
59   *         &lt;element name="kammarbeslutstyp" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
60   *       &lt;/sequence&gt;
61   *     &lt;/restriction&gt;
62   *   &lt;/complexContent&gt;
63   * &lt;/complexType&gt;
64   * </pre>
65   * 
66   * 
67   */
68  @XmlAccessorType(XmlAccessType.FIELD)
69  @XmlType(name = "DocumentProposalData", propOrder = {
70      "proposalNumber",
71      "designation",
72      "wording",
73      "wording2",
74      "wording3",
75      "wording4",
76      "committee",
77      "chamber",
78      "processedIn",
79      "decisionType"
80  })
81  @Entity(name = "DocumentProposalData")
82  @Table(name = "DOCUMENT_PROPOSAL_DATA")
83  @Inheritance(strategy = InheritanceType.JOINED)
84  public class DocumentProposalData
85      implements Serializable, ModelObject, Equals, HashCode, ToString
86  {
87  
88      @XmlElement(name = "nummer")
89      protected int proposalNumber;
90      @XmlElement(name = "beteckning")
91      protected int designation;
92      @XmlElement(name = "lydelse", required = true)
93      protected String wording;
94      @XmlElement(name = "lydelse2", required = true)
95      protected String wording2;
96      @XmlElement(name = "lydelse3", required = true)
97      protected String wording3;
98      @XmlElement(name = "lydelse4", required = true)
99      protected String wording4;
100     @XmlElement(name = "utskottet", required = true)
101     protected String committee;
102     @XmlElement(name = "kammaren", required = true)
103     protected String chamber;
104     @XmlElement(name = "behandlas_i", required = true)
105     protected String processedIn;
106     @XmlElement(name = "kammarbeslutstyp", required = true)
107     protected String decisionType;
108     @XmlAttribute(name = "Hjid")
109     protected Long hjid;
110 
111     /**
112      * Gets the value of the proposalNumber property.
113      * 
114      */
115     @Basic
116     @Column(name = "PROPOSAL_NUMBER", precision = 10, scale = 0)
117     public int getProposalNumber() {
118         return proposalNumber;
119     }
120 
121     /**
122      * Sets the value of the proposalNumber property.
123      * 
124      */
125     public void setProposalNumber(int value) {
126         this.proposalNumber = value;
127     }
128 
129     /**
130      * Gets the value of the designation property.
131      * 
132      */
133     @Basic
134     @Column(name = "DESIGNATION", precision = 10, scale = 0)
135     public int getDesignation() {
136         return designation;
137     }
138 
139     /**
140      * Sets the value of the designation property.
141      * 
142      */
143     public void setDesignation(int value) {
144         this.designation = value;
145     }
146 
147     /**
148      * Gets the value of the wording property.
149      * 
150      * @return
151      *     possible object is
152      *     {@link String }
153      *     
154      */
155     @Basic
156     @Column(name = "WORDING", length = 255)
157     public String getWording() {
158         return wording;
159     }
160 
161     /**
162      * Sets the value of the wording property.
163      * 
164      * @param value
165      *     allowed object is
166      *     {@link String }
167      *     
168      */
169     public void setWording(String value) {
170         this.wording = value;
171     }
172 
173     /**
174      * Gets the value of the wording2 property.
175      * 
176      * @return
177      *     possible object is
178      *     {@link String }
179      *     
180      */
181     @Basic
182     @Column(name = "WORDING_2", length = 255)
183     public String getWording2() {
184         return wording2;
185     }
186 
187     /**
188      * Sets the value of the wording2 property.
189      * 
190      * @param value
191      *     allowed object is
192      *     {@link String }
193      *     
194      */
195     public void setWording2(String value) {
196         this.wording2 = value;
197     }
198 
199     /**
200      * Gets the value of the wording3 property.
201      * 
202      * @return
203      *     possible object is
204      *     {@link String }
205      *     
206      */
207     @Basic
208     @Column(name = "WORDING_3", length = 255)
209     public String getWording3() {
210         return wording3;
211     }
212 
213     /**
214      * Sets the value of the wording3 property.
215      * 
216      * @param value
217      *     allowed object is
218      *     {@link String }
219      *     
220      */
221     public void setWording3(String value) {
222         this.wording3 = value;
223     }
224 
225     /**
226      * Gets the value of the wording4 property.
227      * 
228      * @return
229      *     possible object is
230      *     {@link String }
231      *     
232      */
233     @Basic
234     @Column(name = "WORDING_4", length = 255)
235     public String getWording4() {
236         return wording4;
237     }
238 
239     /**
240      * Sets the value of the wording4 property.
241      * 
242      * @param value
243      *     allowed object is
244      *     {@link String }
245      *     
246      */
247     public void setWording4(String value) {
248         this.wording4 = value;
249     }
250 
251     /**
252      * Gets the value of the committee property.
253      * 
254      * @return
255      *     possible object is
256      *     {@link String }
257      *     
258      */
259     @Basic
260     @Column(name = "COMMITTEE", length = 255)
261     public String getCommittee() {
262         return committee;
263     }
264 
265     /**
266      * Sets the value of the committee property.
267      * 
268      * @param value
269      *     allowed object is
270      *     {@link String }
271      *     
272      */
273     public void setCommittee(String value) {
274         this.committee = value;
275     }
276 
277     /**
278      * Gets the value of the chamber property.
279      * 
280      * @return
281      *     possible object is
282      *     {@link String }
283      *     
284      */
285     @Basic
286     @Column(name = "CHAMBER", length = 255)
287     public String getChamber() {
288         return chamber;
289     }
290 
291     /**
292      * Sets the value of the chamber property.
293      * 
294      * @param value
295      *     allowed object is
296      *     {@link String }
297      *     
298      */
299     public void setChamber(String value) {
300         this.chamber = value;
301     }
302 
303     /**
304      * Gets the value of the processedIn property.
305      * 
306      * @return
307      *     possible object is
308      *     {@link String }
309      *     
310      */
311     @Basic
312     @Column(name = "PROCESSED_IN", length = 255)
313     public String getProcessedIn() {
314         return processedIn;
315     }
316 
317     /**
318      * Sets the value of the processedIn property.
319      * 
320      * @param value
321      *     allowed object is
322      *     {@link String }
323      *     
324      */
325     public void setProcessedIn(String value) {
326         this.processedIn = value;
327     }
328 
329     /**
330      * Gets the value of the decisionType property.
331      * 
332      * @return
333      *     possible object is
334      *     {@link String }
335      *     
336      */
337     @Basic
338     @Column(name = "DECISION_TYPE", length = 255)
339     public String getDecisionType() {
340         return decisionType;
341     }
342 
343     /**
344      * Sets the value of the decisionType property.
345      * 
346      * @param value
347      *     allowed object is
348      *     {@link String }
349      *     
350      */
351     public void setDecisionType(String value) {
352         this.decisionType = value;
353     }
354 
355     public DocumentProposalData withProposalNumber(int value) {
356         setProposalNumber(value);
357         return this;
358     }
359 
360     public DocumentProposalData withDesignation(int value) {
361         setDesignation(value);
362         return this;
363     }
364 
365     public DocumentProposalData withWording(String value) {
366         setWording(value);
367         return this;
368     }
369 
370     public DocumentProposalData withWording2(String value) {
371         setWording2(value);
372         return this;
373     }
374 
375     public DocumentProposalData withWording3(String value) {
376         setWording3(value);
377         return this;
378     }
379 
380     public DocumentProposalData withWording4(String value) {
381         setWording4(value);
382         return this;
383     }
384 
385     public DocumentProposalData withCommittee(String value) {
386         setCommittee(value);
387         return this;
388     }
389 
390     public DocumentProposalData withChamber(String value) {
391         setChamber(value);
392         return this;
393     }
394 
395     public DocumentProposalData withProcessedIn(String value) {
396         setProcessedIn(value);
397         return this;
398     }
399 
400     public DocumentProposalData withDecisionType(String value) {
401         setDecisionType(value);
402         return this;
403     }
404 
405     public String toString() {
406         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
407         final StringBuilder buffer = new StringBuilder();
408         append(null, buffer, strategy);
409         return buffer.toString();
410     }
411 
412     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
413         strategy.appendStart(locator, this, buffer);
414         appendFields(locator, buffer, strategy);
415         strategy.appendEnd(locator, this, buffer);
416         return buffer;
417     }
418 
419     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
420         {
421             int theProposalNumber;
422             theProposalNumber = this.getProposalNumber();
423             strategy.appendField(locator, this, "proposalNumber", buffer, theProposalNumber);
424         }
425         {
426             int theDesignation;
427             theDesignation = this.getDesignation();
428             strategy.appendField(locator, this, "designation", buffer, theDesignation);
429         }
430         {
431             String theWording;
432             theWording = this.getWording();
433             strategy.appendField(locator, this, "wording", buffer, theWording);
434         }
435         {
436             String theWording2;
437             theWording2 = this.getWording2();
438             strategy.appendField(locator, this, "wording2", buffer, theWording2);
439         }
440         {
441             String theWording3;
442             theWording3 = this.getWording3();
443             strategy.appendField(locator, this, "wording3", buffer, theWording3);
444         }
445         {
446             String theWording4;
447             theWording4 = this.getWording4();
448             strategy.appendField(locator, this, "wording4", buffer, theWording4);
449         }
450         {
451             String theCommittee;
452             theCommittee = this.getCommittee();
453             strategy.appendField(locator, this, "committee", buffer, theCommittee);
454         }
455         {
456             String theChamber;
457             theChamber = this.getChamber();
458             strategy.appendField(locator, this, "chamber", buffer, theChamber);
459         }
460         {
461             String theProcessedIn;
462             theProcessedIn = this.getProcessedIn();
463             strategy.appendField(locator, this, "processedIn", buffer, theProcessedIn);
464         }
465         {
466             String theDecisionType;
467             theDecisionType = this.getDecisionType();
468             strategy.appendField(locator, this, "decisionType", buffer, theDecisionType);
469         }
470         return buffer;
471     }
472 
473     /**
474      * Gets the value of the hjid property.
475      * 
476      * @return
477      *     possible object is
478      *     {@link Long }
479      *     
480      */
481     @Id
482     @Column(name = "HJID")
483     @GeneratedValue(strategy = GenerationType.AUTO)
484     public Long getHjid() {
485         return hjid;
486     }
487 
488     /**
489      * Sets the value of the hjid property.
490      * 
491      * @param value
492      *     allowed object is
493      *     {@link Long }
494      *     
495      */
496     public void setHjid(Long value) {
497         this.hjid = value;
498     }
499 
500     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
501         if ((object == null)||(this.getClass()!= object.getClass())) {
502             return false;
503         }
504         if (this == object) {
505             return true;
506         }
507         final DocumentProposalData that = ((DocumentProposalData) object);
508         {
509             int lhsProposalNumber;
510             lhsProposalNumber = this.getProposalNumber();
511             int rhsProposalNumber;
512             rhsProposalNumber = that.getProposalNumber();
513             if (!strategy.equals(LocatorUtils.property(thisLocator, "proposalNumber", lhsProposalNumber), LocatorUtils.property(thatLocator, "proposalNumber", rhsProposalNumber), lhsProposalNumber, rhsProposalNumber)) {
514                 return false;
515             }
516         }
517         {
518             int lhsDesignation;
519             lhsDesignation = this.getDesignation();
520             int rhsDesignation;
521             rhsDesignation = that.getDesignation();
522             if (!strategy.equals(LocatorUtils.property(thisLocator, "designation", lhsDesignation), LocatorUtils.property(thatLocator, "designation", rhsDesignation), lhsDesignation, rhsDesignation)) {
523                 return false;
524             }
525         }
526         {
527             String lhsWording;
528             lhsWording = this.getWording();
529             String rhsWording;
530             rhsWording = that.getWording();
531             if (!strategy.equals(LocatorUtils.property(thisLocator, "wording", lhsWording), LocatorUtils.property(thatLocator, "wording", rhsWording), lhsWording, rhsWording)) {
532                 return false;
533             }
534         }
535         {
536             String lhsWording2;
537             lhsWording2 = this.getWording2();
538             String rhsWording2;
539             rhsWording2 = that.getWording2();
540             if (!strategy.equals(LocatorUtils.property(thisLocator, "wording2", lhsWording2), LocatorUtils.property(thatLocator, "wording2", rhsWording2), lhsWording2, rhsWording2)) {
541                 return false;
542             }
543         }
544         {
545             String lhsWording3;
546             lhsWording3 = this.getWording3();
547             String rhsWording3;
548             rhsWording3 = that.getWording3();
549             if (!strategy.equals(LocatorUtils.property(thisLocator, "wording3", lhsWording3), LocatorUtils.property(thatLocator, "wording3", rhsWording3), lhsWording3, rhsWording3)) {
550                 return false;
551             }
552         }
553         {
554             String lhsWording4;
555             lhsWording4 = this.getWording4();
556             String rhsWording4;
557             rhsWording4 = that.getWording4();
558             if (!strategy.equals(LocatorUtils.property(thisLocator, "wording4", lhsWording4), LocatorUtils.property(thatLocator, "wording4", rhsWording4), lhsWording4, rhsWording4)) {
559                 return false;
560             }
561         }
562         {
563             String lhsCommittee;
564             lhsCommittee = this.getCommittee();
565             String rhsCommittee;
566             rhsCommittee = that.getCommittee();
567             if (!strategy.equals(LocatorUtils.property(thisLocator, "committee", lhsCommittee), LocatorUtils.property(thatLocator, "committee", rhsCommittee), lhsCommittee, rhsCommittee)) {
568                 return false;
569             }
570         }
571         {
572             String lhsChamber;
573             lhsChamber = this.getChamber();
574             String rhsChamber;
575             rhsChamber = that.getChamber();
576             if (!strategy.equals(LocatorUtils.property(thisLocator, "chamber", lhsChamber), LocatorUtils.property(thatLocator, "chamber", rhsChamber), lhsChamber, rhsChamber)) {
577                 return false;
578             }
579         }
580         {
581             String lhsProcessedIn;
582             lhsProcessedIn = this.getProcessedIn();
583             String rhsProcessedIn;
584             rhsProcessedIn = that.getProcessedIn();
585             if (!strategy.equals(LocatorUtils.property(thisLocator, "processedIn", lhsProcessedIn), LocatorUtils.property(thatLocator, "processedIn", rhsProcessedIn), lhsProcessedIn, rhsProcessedIn)) {
586                 return false;
587             }
588         }
589         {
590             String lhsDecisionType;
591             lhsDecisionType = this.getDecisionType();
592             String rhsDecisionType;
593             rhsDecisionType = that.getDecisionType();
594             if (!strategy.equals(LocatorUtils.property(thisLocator, "decisionType", lhsDecisionType), LocatorUtils.property(thatLocator, "decisionType", rhsDecisionType), lhsDecisionType, rhsDecisionType)) {
595                 return false;
596             }
597         }
598         return true;
599     }
600 
601     public boolean equals(Object object) {
602         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
603         return equals(null, null, object, strategy);
604     }
605 
606     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
607         int currentHashCode = 1;
608         {
609             int theProposalNumber;
610             theProposalNumber = this.getProposalNumber();
611             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "proposalNumber", theProposalNumber), currentHashCode, theProposalNumber);
612         }
613         {
614             int theDesignation;
615             theDesignation = this.getDesignation();
616             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "designation", theDesignation), currentHashCode, theDesignation);
617         }
618         {
619             String theWording;
620             theWording = this.getWording();
621             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wording", theWording), currentHashCode, theWording);
622         }
623         {
624             String theWording2;
625             theWording2 = this.getWording2();
626             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wording2", theWording2), currentHashCode, theWording2);
627         }
628         {
629             String theWording3;
630             theWording3 = this.getWording3();
631             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wording3", theWording3), currentHashCode, theWording3);
632         }
633         {
634             String theWording4;
635             theWording4 = this.getWording4();
636             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wording4", theWording4), currentHashCode, theWording4);
637         }
638         {
639             String theCommittee;
640             theCommittee = this.getCommittee();
641             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "committee", theCommittee), currentHashCode, theCommittee);
642         }
643         {
644             String theChamber;
645             theChamber = this.getChamber();
646             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chamber", theChamber), currentHashCode, theChamber);
647         }
648         {
649             String theProcessedIn;
650             theProcessedIn = this.getProcessedIn();
651             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "processedIn", theProcessedIn), currentHashCode, theProcessedIn);
652         }
653         {
654             String theDecisionType;
655             theDecisionType = this.getDecisionType();
656             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "decisionType", theDecisionType), currentHashCode, theDecisionType);
657         }
658         return currentHashCode;
659     }
660 
661     public int hashCode() {
662         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
663         return this.hashCode(null, strategy);
664     }
665 
666 }