org.hibernate.internal.jaxb.mapping.hbm
Class JaxbSqlQueryElement

java.lang.Object
  extended by org.hibernate.internal.jaxb.mapping.hbm.JaxbSqlQueryElement

public class JaxbSqlQueryElement
extends Object

Java class for sql-query-element complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="sql-query-element">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element name="return-scalar" type="{http://www.hibernate.org/xsd/hibernate-mapping}return-scalar-element"/>
         <element name="return" type="{http://www.hibernate.org/xsd/hibernate-mapping}return-element"/>
         <element name="return-join" type="{http://www.hibernate.org/xsd/hibernate-mapping}return-join-element"/>
         <element name="load-collection" type="{http://www.hibernate.org/xsd/hibernate-mapping}load-collection-element"/>
         <element name="synchronize" type="{http://www.hibernate.org/xsd/hibernate-mapping}synchronize-element"/>
         <element name="query-param" type="{http://www.hibernate.org/xsd/hibernate-mapping}query-param-element"/>
       </choice>
       <attribute name="cache-mode" type="{http://www.hibernate.org/xsd/hibernate-mapping}cache-mode-attribute" />
       <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="callable" 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}string" />
       <attribute name="flush-mode" type="{http://www.hibernate.org/xsd/hibernate-mapping}flush-mode-attribute" />
       <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" />
       <attribute name="resultset-ref" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="timeout" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  Boolean cacheable
           
protected  JaxbCacheModeAttribute cacheMode
           
protected  String cacheRegion
           
protected  Boolean callable
           
protected  String comment
           
protected  List<Serializable> content
           
protected  String fetchSize
           
protected  JaxbFlushModeAttribute flushMode
           
protected  String name
           
protected  Boolean readOnly
           
protected  String resultsetRef
           
protected  String timeout
           
 
Constructor Summary
JaxbSqlQueryElement()
           
 
Method Summary
 JaxbCacheModeAttribute 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.
 String getFetchSize()
          Gets the value of the fetchSize property.
 JaxbFlushModeAttribute 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.
 String 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(JaxbCacheModeAttribute 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(String value)
          Sets the value of the fetchSize property.
 void setFlushMode(JaxbFlushModeAttribute 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(String value)
          Sets the value of the timeout property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected List<Serializable> content

cacheMode

protected JaxbCacheModeAttribute cacheMode

cacheRegion

protected String cacheRegion

cacheable

protected Boolean cacheable

callable

protected Boolean callable

comment

protected String comment

fetchSize

protected String fetchSize

flushMode

protected JaxbFlushModeAttribute flushMode

name

protected String name

readOnly

protected Boolean readOnly

resultsetRef

protected String resultsetRef

timeout

protected String timeout
Constructor Detail

JaxbSqlQueryElement

public JaxbSqlQueryElement()
Method Detail

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 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<JaxbReturnScalarElement> JAXBElement<JaxbQueryParamElement> JAXBElement<JaxbLoadCollectionElement> JAXBElement<JaxbReturnElement> JAXBElement<JaxbReturnJoinElement> JAXBElement<JaxbSynchronizeElement> String


getCacheMode

public JaxbCacheModeAttribute getCacheMode()
Gets the value of the cacheMode property.

Returns:
possible object is JaxbCacheModeAttribute

setCacheMode

public void setCacheMode(JaxbCacheModeAttribute value)
Sets the value of the cacheMode property.

Parameters:
value - allowed object is JaxbCacheModeAttribute

getCacheRegion

public String getCacheRegion()
Gets the value of the cacheRegion property.

Returns:
possible object is String

setCacheRegion

public void setCacheRegion(String value)
Sets the value of the cacheRegion property.

Parameters:
value - allowed object is String

isCacheable

public boolean isCacheable()
Gets the value of the cacheable property.

Returns:
possible object is Boolean

setCacheable

public void setCacheable(Boolean value)
Sets the value of the cacheable property.

Parameters:
value - allowed object is Boolean

isCallable

public boolean isCallable()
Gets the value of the callable property.

Returns:
possible object is Boolean

setCallable

public void setCallable(Boolean value)
Sets the value of the callable property.

Parameters:
value - allowed object is Boolean

getComment

public String getComment()
Gets the value of the comment property.

Returns:
possible object is String

setComment

public void setComment(String value)
Sets the value of the comment property.

Parameters:
value - allowed object is String

getFetchSize

public String getFetchSize()
Gets the value of the fetchSize property.

Returns:
possible object is String

setFetchSize

public void setFetchSize(String value)
Sets the value of the fetchSize property.

Parameters:
value - allowed object is String

getFlushMode

public JaxbFlushModeAttribute getFlushMode()
Gets the value of the flushMode property.

Returns:
possible object is JaxbFlushModeAttribute

setFlushMode

public void setFlushMode(JaxbFlushModeAttribute value)
Sets the value of the flushMode property.

Parameters:
value - allowed object is JaxbFlushModeAttribute

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

isReadOnly

public Boolean isReadOnly()
Gets the value of the readOnly property.

Returns:
possible object is Boolean

setReadOnly

public void setReadOnly(Boolean value)
Sets the value of the readOnly property.

Parameters:
value - allowed object is Boolean

getResultsetRef

public String getResultsetRef()
Gets the value of the resultsetRef property.

Returns:
possible object is String

setResultsetRef

public void setResultsetRef(String value)
Sets the value of the resultsetRef property.

Parameters:
value - allowed object is String

getTimeout

public String getTimeout()
Gets the value of the timeout property.

Returns:
possible object is String

setTimeout

public void setTimeout(String value)
Sets the value of the timeout property.

Parameters:
value - allowed object is String


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.