com.avaje.ebeaninternal.xmlmapping.model.XmEntity Maven / Gradle / Ivy
package com.avaje.ebeaninternal.xmlmapping.model;
import java.util.ArrayList;
import java.util.List;
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;
/**
* 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://ebean-orm.github.io/xml/ns/ebean}named-query" maxOccurs="unbounded"/>
* <element ref="{http://ebean-orm.github.io/xml/ns/ebean}raw-sql" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"namedQuery",
"rawSql"
})
@XmlRootElement(name = "entity")
public class XmEntity {
@XmlElement(name = "named-query", required = true)
protected List namedQuery;
@XmlElement(name = "raw-sql", required = true)
protected List rawSql;
@XmlAttribute(name = "class", required = true)
protected String clazz;
/**
* Gets the value of the namedQuery 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 namedQuery property.
*
*
* For example, to add a new item, do as follows:
*
* getNamedQuery().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmNamedQuery }
*
*
*/
public List getNamedQuery() {
if (namedQuery == null) {
namedQuery = new ArrayList();
}
return this.namedQuery;
}
/**
* Gets the value of the rawSql 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 rawSql property.
*
*
* For example, to add a new item, do as follows:
*
* getRawSql().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmRawSql }
*
*
*/
public List getRawSql() {
if (rawSql == null) {
rawSql = new ArrayList();
}
return this.rawSql;
}
/**
* Gets the value of the clazz property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getClazz() {
return clazz;
}
/**
* Sets the value of the clazz property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClazz(String value) {
this.clazz = value;
}
}