Class JaxbHbmNamedNativeQueryType

java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNamedNativeQueryType
All Implemented Interfaces:
Serializable

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>. <p>The following schema fragment specifies the expected content contained within this class.</p> <pre>{@code <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>
See Also:
  • Field Details

    • content

      protected List<Serializable> content
      The sql-query element declares a named SQL query string
    • 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
    • callable

      protected Boolean callable
    • resultsetRef

      protected String resultsetRef
  • Constructor Details

    • JaxbHbmNamedNativeQueryType

      public JaxbHbmNamedNativeQueryType()
  • Method Details

    • getContent

      public List<Serializable> getContent()
      The sql-query element declares a named SQL query string 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 Jakarta XML Binding 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<JaxbHbmNativeQueryCollectionLoadReturnType> JAXBElement<JaxbHbmNativeQueryJoinReturnType> JAXBElement<JaxbHbmNativeQueryReturnType> JAXBElement<JaxbHbmNativeQueryScalarReturnType> JAXBElement<JaxbHbmQueryParamType> JAXBElement<JaxbHbmSynchronizeType> String

      Returns:
      The value of the content property.
    • getCacheMode

      public CacheMode getCacheMode()
      Gets the value of the cacheMode property.
      Returns:
      possible object is String
    • setCacheMode

      public void setCacheMode(CacheMode value)
      Sets the value of the cacheMode property.
      Parameters:
      value - allowed object is String
    • 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
    • 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 Integer getFetchSize()
      Gets the value of the fetchSize property.
      Returns:
      possible object is Integer
    • setFetchSize

      public void setFetchSize(Integer value)
      Sets the value of the fetchSize property.
      Parameters:
      value - allowed object is Integer
    • getFlushMode

      public FlushMode getFlushMode()
      Gets the value of the flushMode property.
      Returns:
      possible object is String
    • setFlushMode

      public void setFlushMode(FlushMode value)
      Sets the value of the flushMode property.
      Parameters:
      value - allowed object is String
    • 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
    • getTimeout

      public Integer getTimeout()
      Gets the value of the timeout property.
      Returns:
      possible object is Integer
    • setTimeout

      public void setTimeout(Integer value)
      Sets the value of the timeout property.
      Parameters:
      value - allowed object is Integer
    • 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
    • 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