All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNamedQueryType Maven / Gradle / Ivy

There is a newer version: 6.5.0.CR2
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2019.01.19 at 06:36:52 PM CET 
//


package org.hibernate.boot.jaxb.hbm.spi;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.hibernate.CacheMode;
import org.hibernate.FlushMode;


/**
 * 

Java class for NamedQueryType complex type. * *

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

 * <complexType name="NamedQueryType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element name="query-param" type="{http://www.hibernate.org/xsd/orm/hbm}QueryParamType"/>
 *       </choice>
 *       <attribute name="cache-mode" type="{http://www.hibernate.org/xsd/orm/hbm}CacheModeEnum" />
 *       <attribute name="cache-region" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="cacheable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="fetch-size" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="flush-mode" type="{http://www.hibernate.org/xsd/orm/hbm}FlushModeEnum" />
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="read-only" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="timeout" type="{http://www.w3.org/2001/XMLSchema}int" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NamedQueryType", propOrder = { "content" }) public class JaxbHbmNamedQueryType implements Serializable { @XmlElementRef(name = "query-param", namespace = "http://www.hibernate.org/xsd/orm/hbm", type = JAXBElement.class) @XmlMixed protected List content; @XmlAttribute(name = "cache-mode") @XmlJavaTypeAdapter(Adapter1 .class) protected CacheMode cacheMode; @XmlAttribute(name = "cache-region") protected String cacheRegion; @XmlAttribute(name = "cacheable") protected Boolean cacheable; @XmlAttribute(name = "comment") protected String comment; @XmlAttribute(name = "fetch-size") protected Integer fetchSize; @XmlAttribute(name = "flush-mode") @XmlJavaTypeAdapter(Adapter5 .class) protected FlushMode flushMode; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "read-only") protected Boolean readOnly; @XmlAttribute(name = "timeout") protected Integer timeout; /** * Gets the value of the content 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 content property. * *

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

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link JaxbHbmQueryParamType }{@code >} * {@link String } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } /** * Gets the value of the cacheMode property. * * @return * possible object is * {@link String } * */ public CacheMode getCacheMode() { return cacheMode; } /** * Sets the value of the cacheMode property. * * @param value * allowed object is * {@link String } * */ public void setCacheMode(CacheMode value) { this.cacheMode = value; } /** * Gets the value of the cacheRegion property. * * @return * possible object is * {@link String } * */ public String getCacheRegion() { return cacheRegion; } /** * Sets the value of the cacheRegion property. * * @param value * allowed object is * {@link String } * */ public void setCacheRegion(String value) { this.cacheRegion = value; } /** * Gets the value of the cacheable property. * * @return * possible object is * {@link Boolean } * */ public boolean isCacheable() { if (cacheable == null) { return false; } else { return cacheable; } } /** * Sets the value of the cacheable property. * * @param value * allowed object is * {@link Boolean } * */ public void setCacheable(Boolean value) { this.cacheable = value; } /** * Gets the value of the comment property. * * @return * possible object is * {@link String } * */ public String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link String } * */ public void setComment(String value) { this.comment = value; } /** * Gets the value of the fetchSize property. * * @return * possible object is * {@link Integer } * */ public Integer getFetchSize() { return fetchSize; } /** * Sets the value of the fetchSize property. * * @param value * allowed object is * {@link Integer } * */ public void setFetchSize(Integer value) { this.fetchSize = value; } /** * Gets the value of the flushMode property. * * @return * possible object is * {@link String } * */ public FlushMode getFlushMode() { return flushMode; } /** * Sets the value of the flushMode property. * * @param value * allowed object is * {@link String } * */ public void setFlushMode(FlushMode value) { this.flushMode = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ 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 readOnly property. * * @return * possible object is * {@link Boolean } * */ public boolean isReadOnly() { if (readOnly == null) { return false; } else { return readOnly; } } /** * Sets the value of the readOnly property. * * @param value * allowed object is * {@link Boolean } * */ public void setReadOnly(Boolean value) { this.readOnly = value; } /** * Gets the value of the timeout property. * * @return * possible object is * {@link Integer } * */ public Integer getTimeout() { return timeout; } /** * Sets the value of the timeout property. * * @param value * allowed object is * {@link Integer } * */ public void setTimeout(Integer value) { this.timeout = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy