public class JaxbHbmNamedNativeQueryType extends Object implements Serializable
Java class for NamedNativeQueryType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="NamedNativeQueryType">
<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"/>
<group ref="{http://www.hibernate.org/xsd/orm/hbm}NativeQueryReturnGroup"/>
<element name="synchronize" type="{http://www.hibernate.org/xsd/orm/hbm}synchronize-type"/>
</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" />
<attribute name="callable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="resultset-ref" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
cacheable |
protected CacheMode |
cacheMode |
protected String |
cacheRegion |
protected Boolean |
callable |
protected String |
comment |
protected List<Serializable> |
content |
protected Integer |
fetchSize |
protected FlushMode |
flushMode |
protected String |
name |
protected Boolean |
readOnly |
protected String |
resultsetRef |
protected Integer |
timeout |
| Constructor and Description |
|---|
JaxbHbmNamedNativeQueryType() |
| 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()
The sql-query element declares a named SQL query string
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.
|
String |
getResultsetRef()
Gets the value of the resultsetRef property.
|
Integer |
getTimeout()
Gets the value of the timeout property.
|
boolean |
isCacheable()
Gets the value of the cacheable property.
|
boolean |
isCallable()
Gets the value of the callable 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 |
setCallable(Boolean value)
Sets the value of the callable 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 |
setResultsetRef(String value)
Sets the value of the resultsetRef 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
protected Boolean callable
protected String resultsetRef
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>
JAXBElement<JaxbHbmNativeQueryScalarReturnType>
JAXBElement<JaxbHbmNativeQueryReturnType>
JAXBElement<JaxbHbmNativeQueryJoinReturnType>
JAXBElement<JaxbHbmNativeQueryCollectionLoadReturnType>
JAXBElement<JaxbHbmSynchronizeType>
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()
Integerpublic void setTimeout(Integer value)
value - allowed object is
Integerpublic boolean isCallable()
Booleanpublic void setCallable(Boolean value)
value - allowed object is
Booleanpublic String getResultsetRef()
StringCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.