类 JaxbHbmNamedQueryType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNamedQueryType
-
- 所有已实现的接口:
Serializable
public class JaxbHbmNamedQueryType extends Object implements Serializable
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>- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Booleancacheableprotected CacheModecacheModeprotected StringcacheRegionprotected Stringcommentprotected List<Serializable>contentprotected IntegerfetchSizeprotected FlushModeflushModeprotected Stringnameprotected BooleanreadOnlyprotected Integertimeout
-
构造器概要
构造器 构造器 说明 JaxbHbmNamedQueryType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CacheModegetCacheMode()Gets the value of the cacheMode property.StringgetCacheRegion()Gets the value of the cacheRegion property.StringgetComment()Gets the value of the comment property.List<Serializable>getContent()Gets the value of the content property.IntegergetFetchSize()Gets the value of the fetchSize property.FlushModegetFlushMode()Gets the value of the flushMode property.StringgetName()Gets the value of the name property.IntegergetTimeout()Gets the value of the timeout property.booleanisCacheable()Gets the value of the cacheable property.booleanisReadOnly()Gets the value of the readOnly property.voidsetCacheable(Boolean value)Sets the value of the cacheable property.voidsetCacheMode(CacheMode value)Sets the value of the cacheMode property.voidsetCacheRegion(String value)Sets the value of the cacheRegion property.voidsetComment(String value)Sets the value of the comment property.voidsetFetchSize(Integer value)Sets the value of the fetchSize property.voidsetFlushMode(FlushMode value)Sets the value of the flushMode property.voidsetName(String value)Sets the value of the name property.voidsetReadOnly(Boolean value)Sets the value of the readOnly property.voidsetTimeout(Integer value)Sets the value of the timeout property.
-
-
-
字段详细资料
-
content
protected List<Serializable> content
-
cacheMode
protected CacheMode cacheMode
-
cacheRegion
protected String cacheRegion
-
cacheable
protected Boolean cacheable
-
comment
protected String comment
-
fetchSize
protected Integer fetchSize
-
flushMode
protected FlushMode flushMode
-
name
protected String name
-
readOnly
protected Boolean readOnly
-
timeout
protected Integer timeout
-
-
方法详细资料
-
getContent
public List<Serializable> getContent()
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
setmethod 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
JAXBElement<JaxbHbmQueryParamType>String
-
getCacheMode
public CacheMode getCacheMode()
Gets the value of the cacheMode property.- 返回:
- possible object is
String
-
setCacheMode
public void setCacheMode(CacheMode value)
Sets the value of the cacheMode property.- 参数:
value- allowed object isString
-
getCacheRegion
public String getCacheRegion()
Gets the value of the cacheRegion property.- 返回:
- possible object is
String
-
setCacheRegion
public void setCacheRegion(String value)
Sets the value of the cacheRegion property.- 参数:
value- allowed object isString
-
isCacheable
public boolean isCacheable()
Gets the value of the cacheable property.- 返回:
- possible object is
Boolean
-
setCacheable
public void setCacheable(Boolean value)
Sets the value of the cacheable property.- 参数:
value- allowed object isBoolean
-
getComment
public String getComment()
Gets the value of the comment property.- 返回:
- possible object is
String
-
setComment
public void setComment(String value)
Sets the value of the comment property.- 参数:
value- allowed object isString
-
getFetchSize
public Integer getFetchSize()
Gets the value of the fetchSize property.- 返回:
- possible object is
Integer
-
setFetchSize
public void setFetchSize(Integer value)
Sets the value of the fetchSize property.- 参数:
value- allowed object isInteger
-
getFlushMode
public FlushMode getFlushMode()
Gets the value of the flushMode property.- 返回:
- possible object is
String
-
setFlushMode
public void setFlushMode(FlushMode value)
Sets the value of the flushMode property.- 参数:
value- allowed object isString
-
setName
public void setName(String value)
Sets the value of the name property.- 参数:
value- allowed object isString
-
isReadOnly
public boolean isReadOnly()
Gets the value of the readOnly property.- 返回:
- possible object is
Boolean
-
setReadOnly
public void setReadOnly(Boolean value)
Sets the value of the readOnly property.- 参数:
value- allowed object isBoolean
-
getTimeout
public Integer getTimeout()
Gets the value of the timeout property.- 返回:
- possible object is
Integer
-
-