Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmNativeQueryReturnType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNativeQueryReturnType
- All Implemented Interfaces:
Serializable,NativeQueryNonScalarRootReturn,NativeQueryReturn
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"
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJava class for anonymous complex type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Gets the value of the alias property.getClazz()Gets the value of the clazz property.Gets the value of the entityName property.Gets the value of the lockMode property.Gets the value of the returnDiscriminator property.Gets the value of the returnProperty property.voidSets the value of the alias property.voidSets the value of the clazz property.voidsetEntityName(String value) Sets the value of the entityName property.voidsetLockMode(LockMode value) Sets the value of the lockMode property.voidSets the value of the returnDiscriminator property.
-
Field Details
-
returnDiscriminator
-
returnProperty
-
alias
-
clazz
-
entityName
-
lockMode
-
-
Constructor Details
-
JaxbHbmNativeQueryReturnType
public JaxbHbmNativeQueryReturnType()
-
-
Method Details
-
getReturnDiscriminator
Gets the value of the returnDiscriminator property.- Returns:
- possible object is
JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator
-
setReturnDiscriminator
Sets the value of the returnDiscriminator property.- Parameters:
value- allowed object isJaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator
-
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
setmethod 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:
getReturnPropertyin interfaceNativeQueryNonScalarRootReturn- Returns:
- The value of the returnProperty property.
-
getAlias
Gets the value of the alias property.- Specified by:
getAliasin interfaceNativeQueryNonScalarRootReturn- Returns:
- possible object is
String
-
setAlias
Sets the value of the alias property.- Parameters:
value- allowed object isString
-
getClazz
Gets the value of the clazz property.- Returns:
- possible object is
String
-
setClazz
Sets the value of the clazz property.- Parameters:
value- allowed object isString
-
getEntityName
Gets the value of the entityName property.- Returns:
- possible object is
String
-
setEntityName
Sets the value of the entityName property.- Parameters:
value- allowed object isString
-
getLockMode
Gets the value of the lockMode property.- Specified by:
getLockModein interfaceNativeQueryNonScalarRootReturn- Returns:
- possible object is
String
-
setLockMode
Sets the value of the lockMode property.- Parameters:
value- allowed object isString
-