Class JaxbHbmNativeQueryReturnType

  • All Implemented Interfaces:
    java.io.Serializable, NativeQueryNonScalarRootReturn

    public class JaxbHbmNativeQueryReturnType
    extends java.lang.Object
    implements java.io.Serializable, NativeQueryNonScalarRootReturn
    Defines a return component for a sql-query. Alias refers to the alias used in the actual sql query; lock-mode specifies the locking to be applied when the query is executed. The class, collection, and role attributes are mutually exclusive; class refers to the class name of a "root entity" in the object result; collection refers to a collection of a given class and is used to define custom sql to load that owned collection and takes the form "ClassName.propertyName"; role refers to the property path for an eager fetch and takes the form "owningAlias.propertyName"

    Java class for NativeQueryReturnType complex type.

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

     <complexType name="NativeQueryReturnType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="return-discriminator" minOccurs="0">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <attribute name="column" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="return-property" type="{http://www.hibernate.org/xsd/orm/hbm}NativeQueryPropertyReturnType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <attribute name="alias" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="class" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" />
           <attribute name="entity-name" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="lock-mode" type="{http://www.hibernate.org/xsd/orm/hbm}LockModeEnum" default="read" />
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • JaxbHbmNativeQueryReturnType

        public JaxbHbmNativeQueryReturnType()
    • Method Detail

      • getReturnProperty

        public java.util.List<JaxbHbmNativeQueryPropertyReturnType> getReturnProperty()
        Gets the value of the returnProperty 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 returnProperty property.

        For example, to add a new item, do as follows:

            getReturnProperty().add(newItem);
         

        Objects of the following type(s) are allowed in the list JaxbHbmNativeQueryPropertyReturnType

        Specified by:
        getReturnProperty in interface NativeQueryNonScalarRootReturn
        Returns:
        The nested property mappings
      • setAlias

        public void setAlias​(java.lang.String value)
        Sets the value of the alias property.
        Parameters:
        value - allowed object is String
      • getClazz

        public java.lang.String getClazz()
        Gets the value of the clazz property.
        Returns:
        possible object is String
      • setClazz

        public void setClazz​(java.lang.String value)
        Sets the value of the clazz property.
        Parameters:
        value - allowed object is String
      • getEntityName

        public java.lang.String getEntityName()
        Gets the value of the entityName property.
        Returns:
        possible object is String
      • setEntityName

        public void setEntityName​(java.lang.String value)
        Sets the value of the entityName property.
        Parameters:
        value - allowed object is String
      • setLockMode

        public void setLockMode​(LockMode value)
        Sets the value of the lockMode property.
        Parameters:
        value - allowed object is String