public class JaxbHbmNamedNativeQueryType extends Object implements Serializable
The sql-query element declares a named SQL query string
<p>Java class for NamedNativeQueryType complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
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()
The sql-query element declares a named SQL query string Gets the value of the content property.
<p> 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 <CODE>set</CODE> method for the content property.
<p> For example, to add a new item, do as follows: <pre> getContent().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
JAXBElement
<
JaxbHbmNativeQueryReturnType
>
JAXBElement
<
JaxbHbmNativeQueryCollectionLoadReturnType
>
JAXBElement
<
JaxbHbmQueryParamType
>
JAXBElement
<
JaxbHbmNativeQueryJoinReturnType
>
String
JAXBElement
<
JaxbHbmSynchronizeType
>
JAXBElement
<
JaxbHbmNativeQueryScalarReturnType
>
public CacheMode getCacheMode()
Gets the value of the cacheMode property.
String
public void setCacheMode(CacheMode value)
Sets the value of the cacheMode property.
value
- allowed object is
String
public String getCacheRegion()
Gets the value of the cacheRegion property.
String
public void setCacheRegion(String value)
Sets the value of the cacheRegion property.
value
- allowed object is
String
public boolean isCacheable()
Gets the value of the cacheable property.
Boolean
public void setCacheable(Boolean value)
Sets the value of the cacheable property.
value
- allowed object is
Boolean
public String getComment()
Gets the value of the comment property.
String
public void setComment(String value)
Sets the value of the comment property.
value
- allowed object is
String
public Integer getFetchSize()
Gets the value of the fetchSize property.
Integer
public void setFetchSize(Integer value)
Sets the value of the fetchSize property.
value
- allowed object is
Integer
public FlushMode getFlushMode()
Gets the value of the flushMode property.
String
public void setFlushMode(FlushMode value)
Sets the value of the flushMode property.
value
- allowed object is
String
public String getName()
Gets the value of the name property.
String
public void setName(String value)
Sets the value of the name property.
value
- allowed object is
String
public boolean isReadOnly()
Gets the value of the readOnly property.
Boolean
public void setReadOnly(Boolean value)
Sets the value of the readOnly property.
value
- allowed object is
Boolean
public Integer getTimeout()
Gets the value of the timeout property.
Integer
public void setTimeout(Integer value)
Sets the value of the timeout property.
value
- allowed object is
Integer
public boolean isCallable()
Gets the value of the callable property.
Boolean
public void setCallable(Boolean value)
Sets the value of the callable property.
value
- allowed object is
Boolean
public String getResultsetRef()
Gets the value of the resultsetRef property.
String
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.