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>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
cacheable |
protected CacheMode |
cacheMode |
protected String |
cacheRegion |
protected String |
comment |
protected List<Serializable> |
content |
protected Integer |
fetchSize |
protected FlushMode |
flushMode |
protected String |
name |
protected Boolean |
readOnly |
protected Integer |
timeout |
| Constructor and Description |
|---|
JaxbHbmNamedQueryType() |
| Modifier and Type | Method and Description |
|---|---|
CacheMode |
getCacheMode()
Gets the value of the cacheMode property.
|
String |
getCacheRegion()
Gets the value of the cacheRegion property.
|
String |
getComment()
Gets the value of the comment property.
|
List<Serializable> |
getContent()
Gets the value of the content property.
|
Integer |
getFetchSize()
Gets the value of the fetchSize property.
|
FlushMode |
getFlushMode()
Gets the value of the flushMode property.
|
String |
getName()
Gets the value of the name property.
|
Integer |
getTimeout()
Gets the value of the timeout property.
|
boolean |
isCacheable()
Gets the value of the cacheable property.
|
boolean |
isReadOnly()
Gets the value of the readOnly property.
|
void |
setCacheable(Boolean value)
Sets the value of the cacheable property.
|
void |
setCacheMode(CacheMode value)
Sets the value of the cacheMode property.
|
void |
setCacheRegion(String value)
Sets the value of the cacheRegion property.
|
void |
setComment(String value)
Sets the value of the comment property.
|
void |
setFetchSize(Integer value)
Sets the value of the fetchSize property.
|
void |
setFlushMode(FlushMode value)
Sets the value of the flushMode property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setReadOnly(Boolean value)
Sets the value of the readOnly property.
|
void |
setTimeout(Integer value)
Sets the value of the timeout property.
|
protected List<Serializable> content
protected CacheMode cacheMode
protected String cacheRegion
protected Boolean cacheable
protected String comment
protected Integer fetchSize
protected FlushMode flushMode
protected String name
protected Boolean readOnly
protected Integer timeout
public List<Serializable> getContent()
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
JAXBElement<JaxbHbmQueryParamType>
String
public CacheMode getCacheMode()
Stringpublic void setCacheMode(CacheMode value)
value - allowed object is
Stringpublic String getCacheRegion()
Stringpublic void setCacheRegion(String value)
value - allowed object is
Stringpublic boolean isCacheable()
Booleanpublic void setCacheable(Boolean value)
value - allowed object is
Booleanpublic String getComment()
Stringpublic void setComment(String value)
value - allowed object is
Stringpublic Integer getFetchSize()
Integerpublic void setFetchSize(Integer value)
value - allowed object is
Integerpublic FlushMode getFlushMode()
Stringpublic void setFlushMode(FlushMode value)
value - allowed object is
Stringpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic boolean isReadOnly()
Booleanpublic void setReadOnly(Boolean value)
value - allowed object is
Booleanpublic Integer getTimeout()
IntegerCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.