Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.3u2-hudson-jaxb-ri-2.2.3-4- 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2011.05.25 at 10:48:29 PM CEST 
  //
  
  
  package com.hack23.cia.model.external.worldbank.indicators.impl;
 
 import java.util.List;

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://indicators.worldbank.external.model.cia.hack23.com/impl}indicator" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}integer" />
       <attribute name="pages" type="{http://www.w3.org/2001/XMLSchema}integer" />
       <attribute name="per_page" type="{http://www.w3.org/2001/XMLSchema}integer" />
       <attribute name="total" type="{http://www.w3.org/2001/XMLSchema}integer" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "indicator"
 })
 @XmlRootElement(name = "indicators")
 @Entity(name = "IndicatorsElement")
 @Table(name = "INDICATORSELEMENT")
 public class IndicatorsElement
     implements SerializableModelObjectEqualsHashCode
 {
 
     @XmlElement(required = true)
     protected List<IndicatorElementindicator;
     @XmlAttribute(name = "page")
     protected BigInteger page;
     @XmlAttribute(name = "pages")
     protected BigInteger pages;
     @XmlAttribute(name = "per_page")
     protected BigInteger perPage;
     @XmlAttribute(name = "total")
     protected BigInteger total;
     @XmlAttribute(name = "Hjid")
     protected Long hjid;

    
Gets the value of the indicator property.

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 set method for the indicator property.

For example, to add a new item, do as follows:

    getIndicator().add(newItem);
 

Objects of the following type(s) are allowed in the list

    @OneToMany(targetEntity = IndicatorElement.class, cascade = {
        .
    })
    @JoinColumn(name = "INDICATOR__INDICATORSELEMENT_0")
    public List<IndicatorElementgetIndicator() {
        if ( == null) {
             = new ArrayList<IndicatorElement>();
        }
        return this.;
    }

    
    public void setIndicator(List<IndicatorElementindicator) {
        this. = indicator;
    }

    
Gets the value of the page property.

Returns:
possible object is
    @Basic
    @Column(name = "PAGE", precision = 20, scale = 0)
    public BigInteger getPage() {
        return ;
    }

    
Sets the value of the page property.

Parameters:
value allowed object is
    public void setPage(BigInteger value) {
        this. = value;
    }

    
Gets the value of the pages property.

Returns:
possible object is
    @Basic
    @Column(name = "PAGES", precision = 20, scale = 0)
    public BigInteger getPages() {
        return ;
    }

    
Sets the value of the pages property.

Parameters:
value allowed object is
    public void setPages(BigInteger value) {
        this. = value;
    }

    
Gets the value of the perPage property.

Returns:
possible object is
    @Basic
    @Column(name = "PERPAGE", precision = 20, scale = 0)
    public BigInteger getPerPage() {
        return ;
    }

    
Sets the value of the perPage property.

Parameters:
value allowed object is
    public void setPerPage(BigInteger value) {
        this. = value;
    }

    
Gets the value of the total property.

Returns:
possible object is
    @Basic
    @Column(name = "TOTAL", precision = 20, scale = 0)
    public BigInteger getTotal() {
        return ;
    }

    
Sets the value of the total property.

Parameters:
value allowed object is
    public void setTotal(BigInteger value) {
        this. = value;
    }
    public IndicatorsElement withIndicator(IndicatorElement... values) {
        if (values!= null) {
            for (IndicatorElement valuevalues) {
                getIndicator().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getIndicator().addAll(values);
        }
        return this;
    }
    public IndicatorsElement withIndicator(List<IndicatorElementindicator) {
        setIndicator(indicator);
        return this;
    }
    public IndicatorsElement withPage(BigInteger value) {
        setPage(value);
        return this;
    }
    public IndicatorsElement withPages(BigInteger value) {
        setPages(value);
        return this;
    }
    public IndicatorsElement withPerPage(BigInteger value) {
        setPerPage(value);
        return this;
    }
    public IndicatorsElement withTotal(BigInteger value) {
        setTotal(value);
        return this;
    }

    
Gets the value of the hjid property.

Returns:
possible object is
    @Id
    @Column(name = "HJID")
    @GeneratedValue(strategy = .)
    public Long getHjid() {
        return ;
    }

    
Sets the value of the hjid property.

Parameters:
value allowed object is
    public void setHjid(Long value) {
        this. = value;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof IndicatorsElement)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final IndicatorsElement that = ((IndicatorsElementobject);
        {
            List<IndicatorElementlhsIndicator;
            lhsIndicator = this.getIndicator();
            List<IndicatorElementrhsIndicator;
            rhsIndicator = that.getIndicator();
            if (!strategy.equals(LocatorUtils.property(thisLocator"indicator"lhsIndicator), LocatorUtils.property(thatLocator"indicator"rhsIndicator), lhsIndicatorrhsIndicator)) {
                return false;
            }
        }
        {
            BigInteger lhsPage;
            lhsPage = this.getPage();
            BigInteger rhsPage;
            rhsPage = that.getPage();
            if (!strategy.equals(LocatorUtils.property(thisLocator"page"lhsPage), LocatorUtils.property(thatLocator"page"rhsPage), lhsPagerhsPage)) {
                return false;
            }
        }
        {
            BigInteger lhsPages;
            lhsPages = this.getPages();
            BigInteger rhsPages;
            rhsPages = that.getPages();
            if (!strategy.equals(LocatorUtils.property(thisLocator"pages"lhsPages), LocatorUtils.property(thatLocator"pages"rhsPages), lhsPagesrhsPages)) {
                return false;
            }
        }
        {
            BigInteger lhsPerPage;
            lhsPerPage = this.getPerPage();
            BigInteger rhsPerPage;
            rhsPerPage = that.getPerPage();
            if (!strategy.equals(LocatorUtils.property(thisLocator"perPage"lhsPerPage), LocatorUtils.property(thatLocator"perPage"rhsPerPage), lhsPerPagerhsPerPage)) {
                return false;
            }
        }
        {
            BigInteger lhsTotal;
            lhsTotal = this.getTotal();
            BigInteger rhsTotal;
            rhsTotal = that.getTotal();
            if (!strategy.equals(LocatorUtils.property(thisLocator"total"lhsTotal), LocatorUtils.property(thatLocator"total"rhsTotal), lhsTotalrhsTotal)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            List<IndicatorElementtheIndicator;
            theIndicator = this.getIndicator();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"indicator"theIndicator), currentHashCodetheIndicator);
        }
        {
            BigInteger thePage;
            thePage = this.getPage();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"page"thePage), currentHashCodethePage);
        }
        {
            BigInteger thePages;
            thePages = this.getPages();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"pages"thePages), currentHashCodethePages);
        }
        {
            BigInteger thePerPage;
            thePerPage = this.getPerPage();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"perPage"thePerPage), currentHashCodethePerPage);
        }
        {
            BigInteger theTotal;
            theTotal = this.getTotal();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"total"theTotal), currentHashCodetheTotal);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
New to GrepCode? Check out our FAQ X