org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCacheType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.08.15 at 08:55:37 PM BST
//
package org.hibernate.boot.jaxb.hbm.spi;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.hibernate.cache.spi.access.AccessType;
/**
* Java class for CacheType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CacheType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="include" type="{http://www.hibernate.org/xsd/orm/hbm}CacheInclusionEnum" default="all" />
* <attribute name="region" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="usage" use="required" type="{http://www.hibernate.org/xsd/orm/hbm}CacheUsageEnum" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CacheType")
public class JaxbHbmCacheType
implements Serializable
{
@XmlAttribute(name = "include")
protected JaxbHbmCacheInclusionEnum include;
@XmlAttribute(name = "region")
protected String region;
@XmlAttribute(name = "usage", required = true)
@XmlJavaTypeAdapter(Adapter2 .class)
protected AccessType usage;
/**
* Gets the value of the include property.
*
* @return
* possible object is
* {@link JaxbHbmCacheInclusionEnum }
*
*/
public JaxbHbmCacheInclusionEnum getInclude() {
if (include == null) {
return JaxbHbmCacheInclusionEnum.ALL;
} else {
return include;
}
}
/**
* Sets the value of the include property.
*
* @param value
* allowed object is
* {@link JaxbHbmCacheInclusionEnum }
*
*/
public void setInclude(JaxbHbmCacheInclusionEnum value) {
this.include = value;
}
/**
* Gets the value of the region property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRegion() {
return region;
}
/**
* Sets the value of the region property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRegion(String value) {
this.region = value;
}
/**
* Gets the value of the usage property.
*
* @return
* possible object is
* {@link String }
*
*/
public AccessType getUsage() {
return usage;
}
/**
* Sets the value of the usage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsage(AccessType value) {
this.usage = value;
}
}