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:23:18 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.internal.application.view.impl;
10  
11  import java.io.Serializable;
12  import javax.persistence.Basic;
13  import javax.persistence.CascadeType;
14  import javax.persistence.Column;
15  import javax.persistence.Entity;
16  import javax.persistence.EnumType;
17  import javax.persistence.Enumerated;
18  import javax.persistence.GeneratedValue;
19  import javax.persistence.GenerationType;
20  import javax.persistence.Id;
21  import javax.persistence.Inheritance;
22  import javax.persistence.InheritanceType;
23  import javax.persistence.JoinColumn;
24  import javax.persistence.ManyToOne;
25  import javax.persistence.Table;
26  import javax.xml.bind.annotation.XmlAccessType;
27  import javax.xml.bind.annotation.XmlAccessorType;
28  import javax.xml.bind.annotation.XmlAttribute;
29  import javax.xml.bind.annotation.XmlSchemaType;
30  import javax.xml.bind.annotation.XmlType;
31  import com.hack23.cia.model.common.api.ModelObject;
32  import org.jvnet.jaxb2_commons.lang.Equals;
33  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
34  import org.jvnet.jaxb2_commons.lang.HashCode;
35  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
36  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
37  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
38  import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
39  import org.jvnet.jaxb2_commons.lang.ToString;
40  import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
41  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
42  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
43  
44  
45  /**
46   * <p>Java class for ApplicationView complex type.
47   * 
48   * <p>The following schema fragment specifies the expected content contained within this class.
49   * 
50   * <pre>
51   * &lt;complexType name="ApplicationView"&gt;
52   *   &lt;complexContent&gt;
53   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
54   *       &lt;sequence&gt;
55   *         &lt;element name="perspective" type="{http://view.application.internal.model.cia.hack23.com/impl}ViewPerspective" minOccurs="0"/&gt;
56   *         &lt;element name="targetProfile" type="{http://view.application.internal.model.cia.hack23.com/impl}TargetProfileContent" minOccurs="0"/&gt;
57   *         &lt;element name="performanceIndicators" type="{http://view.application.internal.model.cia.hack23.com/impl}PerformanceIndicatorContent" minOccurs="0"/&gt;
58   *         &lt;element name="operationalInformation" type="{http://view.application.internal.model.cia.hack23.com/impl}OperationalInformationContent" minOccurs="0"/&gt;
59   *         &lt;element name="qualityAssurance" type="{http://view.application.internal.model.cia.hack23.com/impl}QualityAssuranceContent" minOccurs="0"/&gt;
60   *         &lt;element name="dataSourceInformation" type="{http://view.application.internal.model.cia.hack23.com/impl}DataSourceContent" minOccurs="0"/&gt;
61   *       &lt;/sequence&gt;
62   *     &lt;/restriction&gt;
63   *   &lt;/complexContent&gt;
64   * &lt;/complexType&gt;
65   * </pre>
66   * 
67   * 
68   */
69  @XmlAccessorType(XmlAccessType.FIELD)
70  @XmlType(name = "ApplicationView", propOrder = {
71      "perspective",
72      "targetProfile",
73      "performanceIndicators",
74      "operationalInformation",
75      "qualityAssurance",
76      "dataSourceInformation"
77  })
78  @Entity(name = "ApplicationView")
79  @Table(name = "APPLICATION_VIEW")
80  @Inheritance(strategy = InheritanceType.JOINED)
81  public class ApplicationView
82      implements Serializable, ModelObject, Equals, HashCode, ToString
83  {
84  
85      private final static long serialVersionUID = 1L;
86      @XmlSchemaType(name = "string")
87      protected ViewPerspective perspective;
88      protected TargetProfileContent targetProfile;
89      protected PerformanceIndicatorContent performanceIndicators;
90      protected OperationalInformationContent operationalInformation;
91      protected QualityAssuranceContent qualityAssurance;
92      protected DataSourceContent dataSourceInformation;
93      @XmlAttribute(name = "Hjid")
94      protected Long hjid;
95  
96      /**
97       * Gets the value of the perspective property.
98       * 
99       * @return
100      *     possible object is
101      *     {@link ViewPerspective }
102      *     
103      */
104     @Basic
105     @Column(name = "PERSPECTIVE", length = 255)
106     @Enumerated(EnumType.STRING)
107     public ViewPerspective getPerspective() {
108         return perspective;
109     }
110 
111     /**
112      * Sets the value of the perspective property.
113      * 
114      * @param value
115      *     allowed object is
116      *     {@link ViewPerspective }
117      *     
118      */
119     public void setPerspective(ViewPerspective value) {
120         this.perspective = value;
121     }
122 
123     /**
124      * Gets the value of the targetProfile property.
125      * 
126      * @return
127      *     possible object is
128      *     {@link TargetProfileContent }
129      *     
130      */
131     @ManyToOne(targetEntity = TargetProfileContent.class, cascade = {
132         CascadeType.ALL
133     })
134     @JoinColumn(name = "TARGET_PROFILE_APPLICATION_V_0")
135     public TargetProfileContent getTargetProfile() {
136         return targetProfile;
137     }
138 
139     /**
140      * Sets the value of the targetProfile property.
141      * 
142      * @param value
143      *     allowed object is
144      *     {@link TargetProfileContent }
145      *     
146      */
147     public void setTargetProfile(TargetProfileContent value) {
148         this.targetProfile = value;
149     }
150 
151     /**
152      * Gets the value of the performanceIndicators property.
153      * 
154      * @return
155      *     possible object is
156      *     {@link PerformanceIndicatorContent }
157      *     
158      */
159     @ManyToOne(targetEntity = PerformanceIndicatorContent.class, cascade = {
160         CascadeType.ALL
161     })
162     @JoinColumn(name = "PERFORMANCE_INDICATORS_APPLI_0")
163     public PerformanceIndicatorContent getPerformanceIndicators() {
164         return performanceIndicators;
165     }
166 
167     /**
168      * Sets the value of the performanceIndicators property.
169      * 
170      * @param value
171      *     allowed object is
172      *     {@link PerformanceIndicatorContent }
173      *     
174      */
175     public void setPerformanceIndicators(PerformanceIndicatorContent value) {
176         this.performanceIndicators = value;
177     }
178 
179     /**
180      * Gets the value of the operationalInformation property.
181      * 
182      * @return
183      *     possible object is
184      *     {@link OperationalInformationContent }
185      *     
186      */
187     @ManyToOne(targetEntity = OperationalInformationContent.class, cascade = {
188         CascadeType.ALL
189     })
190     @JoinColumn(name = "OPERATIONAL_INFORMATION_APPL_0")
191     public OperationalInformationContent getOperationalInformation() {
192         return operationalInformation;
193     }
194 
195     /**
196      * Sets the value of the operationalInformation property.
197      * 
198      * @param value
199      *     allowed object is
200      *     {@link OperationalInformationContent }
201      *     
202      */
203     public void setOperationalInformation(OperationalInformationContent value) {
204         this.operationalInformation = value;
205     }
206 
207     /**
208      * Gets the value of the qualityAssurance property.
209      * 
210      * @return
211      *     possible object is
212      *     {@link QualityAssuranceContent }
213      *     
214      */
215     @ManyToOne(targetEntity = QualityAssuranceContent.class, cascade = {
216         CascadeType.ALL
217     })
218     @JoinColumn(name = "QUALITY_ASSURANCE_APPLICATIO_0")
219     public QualityAssuranceContent getQualityAssurance() {
220         return qualityAssurance;
221     }
222 
223     /**
224      * Sets the value of the qualityAssurance property.
225      * 
226      * @param value
227      *     allowed object is
228      *     {@link QualityAssuranceContent }
229      *     
230      */
231     public void setQualityAssurance(QualityAssuranceContent value) {
232         this.qualityAssurance = value;
233     }
234 
235     /**
236      * Gets the value of the dataSourceInformation property.
237      * 
238      * @return
239      *     possible object is
240      *     {@link DataSourceContent }
241      *     
242      */
243     @ManyToOne(targetEntity = DataSourceContent.class, cascade = {
244         CascadeType.ALL
245     })
246     @JoinColumn(name = "DATA_SOURCE_INFORMATION_APPL_0")
247     public DataSourceContent getDataSourceInformation() {
248         return dataSourceInformation;
249     }
250 
251     /**
252      * Sets the value of the dataSourceInformation property.
253      * 
254      * @param value
255      *     allowed object is
256      *     {@link DataSourceContent }
257      *     
258      */
259     public void setDataSourceInformation(DataSourceContent value) {
260         this.dataSourceInformation = value;
261     }
262 
263     public ApplicationView withPerspective(ViewPerspective value) {
264         setPerspective(value);
265         return this;
266     }
267 
268     public ApplicationView withTargetProfile(TargetProfileContent value) {
269         setTargetProfile(value);
270         return this;
271     }
272 
273     public ApplicationView withPerformanceIndicators(PerformanceIndicatorContent value) {
274         setPerformanceIndicators(value);
275         return this;
276     }
277 
278     public ApplicationView withOperationalInformation(OperationalInformationContent value) {
279         setOperationalInformation(value);
280         return this;
281     }
282 
283     public ApplicationView withQualityAssurance(QualityAssuranceContent value) {
284         setQualityAssurance(value);
285         return this;
286     }
287 
288     public ApplicationView withDataSourceInformation(DataSourceContent value) {
289         setDataSourceInformation(value);
290         return this;
291     }
292 
293     public String toString() {
294         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
295         final StringBuilder buffer = new StringBuilder();
296         append(null, buffer, strategy);
297         return buffer.toString();
298     }
299 
300     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
301         strategy.appendStart(locator, this, buffer);
302         appendFields(locator, buffer, strategy);
303         strategy.appendEnd(locator, this, buffer);
304         return buffer;
305     }
306 
307     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
308         {
309             ViewPerspective thePerspective;
310             thePerspective = this.getPerspective();
311             strategy.appendField(locator, this, "perspective", buffer, thePerspective);
312         }
313         {
314             TargetProfileContent theTargetProfile;
315             theTargetProfile = this.getTargetProfile();
316             strategy.appendField(locator, this, "targetProfile", buffer, theTargetProfile);
317         }
318         {
319             PerformanceIndicatorContent thePerformanceIndicators;
320             thePerformanceIndicators = this.getPerformanceIndicators();
321             strategy.appendField(locator, this, "performanceIndicators", buffer, thePerformanceIndicators);
322         }
323         {
324             OperationalInformationContent theOperationalInformation;
325             theOperationalInformation = this.getOperationalInformation();
326             strategy.appendField(locator, this, "operationalInformation", buffer, theOperationalInformation);
327         }
328         {
329             QualityAssuranceContent theQualityAssurance;
330             theQualityAssurance = this.getQualityAssurance();
331             strategy.appendField(locator, this, "qualityAssurance", buffer, theQualityAssurance);
332         }
333         {
334             DataSourceContent theDataSourceInformation;
335             theDataSourceInformation = this.getDataSourceInformation();
336             strategy.appendField(locator, this, "dataSourceInformation", buffer, theDataSourceInformation);
337         }
338         return buffer;
339     }
340 
341     /**
342      * Gets the value of the hjid property.
343      * 
344      * @return
345      *     possible object is
346      *     {@link Long }
347      *     
348      */
349     @Id
350     @Column(name = "HJID")
351     @GeneratedValue(strategy = GenerationType.AUTO)
352     public Long getHjid() {
353         return hjid;
354     }
355 
356     /**
357      * Sets the value of the hjid property.
358      * 
359      * @param value
360      *     allowed object is
361      *     {@link Long }
362      *     
363      */
364     public void setHjid(Long value) {
365         this.hjid = value;
366     }
367 
368     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
369         if ((object == null)||(this.getClass()!= object.getClass())) {
370             return false;
371         }
372         if (this == object) {
373             return true;
374         }
375         final ApplicationView that = ((ApplicationView) object);
376         {
377             ViewPerspective lhsPerspective;
378             lhsPerspective = this.getPerspective();
379             ViewPerspective rhsPerspective;
380             rhsPerspective = that.getPerspective();
381             if (!strategy.equals(LocatorUtils.property(thisLocator, "perspective", lhsPerspective), LocatorUtils.property(thatLocator, "perspective", rhsPerspective), lhsPerspective, rhsPerspective)) {
382                 return false;
383             }
384         }
385         {
386             TargetProfileContent lhsTargetProfile;
387             lhsTargetProfile = this.getTargetProfile();
388             TargetProfileContent rhsTargetProfile;
389             rhsTargetProfile = that.getTargetProfile();
390             if (!strategy.equals(LocatorUtils.property(thisLocator, "targetProfile", lhsTargetProfile), LocatorUtils.property(thatLocator, "targetProfile", rhsTargetProfile), lhsTargetProfile, rhsTargetProfile)) {
391                 return false;
392             }
393         }
394         {
395             PerformanceIndicatorContent lhsPerformanceIndicators;
396             lhsPerformanceIndicators = this.getPerformanceIndicators();
397             PerformanceIndicatorContent rhsPerformanceIndicators;
398             rhsPerformanceIndicators = that.getPerformanceIndicators();
399             if (!strategy.equals(LocatorUtils.property(thisLocator, "performanceIndicators", lhsPerformanceIndicators), LocatorUtils.property(thatLocator, "performanceIndicators", rhsPerformanceIndicators), lhsPerformanceIndicators, rhsPerformanceIndicators)) {
400                 return false;
401             }
402         }
403         {
404             OperationalInformationContent lhsOperationalInformation;
405             lhsOperationalInformation = this.getOperationalInformation();
406             OperationalInformationContent rhsOperationalInformation;
407             rhsOperationalInformation = that.getOperationalInformation();
408             if (!strategy.equals(LocatorUtils.property(thisLocator, "operationalInformation", lhsOperationalInformation), LocatorUtils.property(thatLocator, "operationalInformation", rhsOperationalInformation), lhsOperationalInformation, rhsOperationalInformation)) {
409                 return false;
410             }
411         }
412         {
413             QualityAssuranceContent lhsQualityAssurance;
414             lhsQualityAssurance = this.getQualityAssurance();
415             QualityAssuranceContent rhsQualityAssurance;
416             rhsQualityAssurance = that.getQualityAssurance();
417             if (!strategy.equals(LocatorUtils.property(thisLocator, "qualityAssurance", lhsQualityAssurance), LocatorUtils.property(thatLocator, "qualityAssurance", rhsQualityAssurance), lhsQualityAssurance, rhsQualityAssurance)) {
418                 return false;
419             }
420         }
421         {
422             DataSourceContent lhsDataSourceInformation;
423             lhsDataSourceInformation = this.getDataSourceInformation();
424             DataSourceContent rhsDataSourceInformation;
425             rhsDataSourceInformation = that.getDataSourceInformation();
426             if (!strategy.equals(LocatorUtils.property(thisLocator, "dataSourceInformation", lhsDataSourceInformation), LocatorUtils.property(thatLocator, "dataSourceInformation", rhsDataSourceInformation), lhsDataSourceInformation, rhsDataSourceInformation)) {
427                 return false;
428             }
429         }
430         return true;
431     }
432 
433     public boolean equals(Object object) {
434         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
435         return equals(null, null, object, strategy);
436     }
437 
438     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
439         int currentHashCode = 1;
440         {
441             ViewPerspective thePerspective;
442             thePerspective = this.getPerspective();
443             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "perspective", thePerspective), currentHashCode, thePerspective);
444         }
445         {
446             TargetProfileContent theTargetProfile;
447             theTargetProfile = this.getTargetProfile();
448             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetProfile", theTargetProfile), currentHashCode, theTargetProfile);
449         }
450         {
451             PerformanceIndicatorContent thePerformanceIndicators;
452             thePerformanceIndicators = this.getPerformanceIndicators();
453             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performanceIndicators", thePerformanceIndicators), currentHashCode, thePerformanceIndicators);
454         }
455         {
456             OperationalInformationContent theOperationalInformation;
457             theOperationalInformation = this.getOperationalInformation();
458             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "operationalInformation", theOperationalInformation), currentHashCode, theOperationalInformation);
459         }
460         {
461             QualityAssuranceContent theQualityAssurance;
462             theQualityAssurance = this.getQualityAssurance();
463             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "qualityAssurance", theQualityAssurance), currentHashCode, theQualityAssurance);
464         }
465         {
466             DataSourceContent theDataSourceInformation;
467             theDataSourceInformation = this.getDataSourceInformation();
468             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataSourceInformation", theDataSourceInformation), currentHashCode, theDataSourceInformation);
469         }
470         return currentHashCode;
471     }
472 
473     public int hashCode() {
474         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
475         return this.hashCode(null, strategy);
476     }
477 
478 }