public class JaxbHbmNativeQueryReturnType extends Object implements 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"
<p>Java class for NativeQueryReturnType complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
| Modifier and Type | Class and Description |
|---|---|
static class |
JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator
<p>Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected String |
clazz |
protected String |
entityName |
protected LockMode |
lockMode |
protected JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator |
returnDiscriminator |
protected List<JaxbHbmNativeQueryPropertyReturnType> |
returnProperty |
| Constructor and Description |
|---|
JaxbHbmNativeQueryReturnType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
Gets the value of the alias property.
|
String |
getClazz()
Gets the value of the clazz property.
|
String |
getEntityName()
Gets the value of the entityName property.
|
LockMode |
getLockMode()
Gets the value of the lockMode property.
|
JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator |
getReturnDiscriminator()
Gets the value of the returnDiscriminator property.
|
List<JaxbHbmNativeQueryPropertyReturnType> |
getReturnProperty()
Gets the value of the returnProperty property.
|
void |
setAlias(String value)
Sets the value of the alias property.
|
void |
setClazz(String value)
Sets the value of the clazz property.
|
void |
setEntityName(String value)
Sets the value of the entityName property.
|
void |
setLockMode(LockMode value)
Sets the value of the lockMode property.
|
void |
setReturnDiscriminator(JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator value)
Sets the value of the returnDiscriminator property.
|
protected JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator returnDiscriminator
protected List<JaxbHbmNativeQueryPropertyReturnType> returnProperty
protected String alias
protected String clazz
protected String entityName
protected LockMode lockMode
public JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator getReturnDiscriminator()
Gets the value of the returnDiscriminator property.
JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminatorpublic void setReturnDiscriminator(JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator value)
Sets the value of the returnDiscriminator property.
value - allowed object is
JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminatorpublic List<JaxbHbmNativeQueryPropertyReturnType> getReturnProperty()
Gets the value of the returnProperty 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 returnProperty property.
<p> For example, to add a new item, do as follows: <pre> getReturnProperty().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
JaxbHbmNativeQueryPropertyReturnType
getReturnProperty in interface NativeQueryNonScalarRootReturnpublic String getAlias()
Gets the value of the alias property.
getAlias in interface NativeQueryNonScalarRootReturnStringpublic void setAlias(String value)
Sets the value of the alias property.
value - allowed object is
Stringpublic String getClazz()
Gets the value of the clazz property.
Stringpublic void setClazz(String value)
Sets the value of the clazz property.
value - allowed object is
Stringpublic String getEntityName()
Gets the value of the entityName property.
Stringpublic void setEntityName(String value)
Sets the value of the entityName property.
value - allowed object is
Stringpublic LockMode getLockMode()
Gets the value of the lockMode property.
getLockMode in interface NativeQueryNonScalarRootReturnStringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.