类 JaxbHbmNativeQueryReturnType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNativeQueryReturnType
-
- 所有已实现的接口:
Serializable,NativeQueryNonScalarRootReturn
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>- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classJaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminatorJava class for anonymous complex type.
-
字段概要
字段 修饰符和类型 字段 说明 protected Stringaliasprotected Stringclazzprotected StringentityNameprotected LockModelockModeprotected JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminatorreturnDiscriminatorprotected List<JaxbHbmNativeQueryPropertyReturnType>returnProperty
-
构造器概要
构造器 构造器 说明 JaxbHbmNativeQueryReturnType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAlias()Gets the value of the alias property.StringgetClazz()Gets the value of the clazz property.StringgetEntityName()Gets the value of the entityName property.LockModegetLockMode()Gets the value of the lockMode property.JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminatorgetReturnDiscriminator()Gets the value of the returnDiscriminator property.List<JaxbHbmNativeQueryPropertyReturnType>getReturnProperty()Gets the value of the returnProperty property.voidsetAlias(String value)Sets the value of the alias property.voidsetClazz(String value)Sets 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.voidsetReturnDiscriminator(JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator value)Sets the value of the returnDiscriminator property.
-
-
-
字段详细资料
-
returnDiscriminator
protected JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator returnDiscriminator
-
returnProperty
protected List<JaxbHbmNativeQueryPropertyReturnType> returnProperty
-
alias
protected String alias
-
clazz
protected String clazz
-
entityName
protected String entityName
-
lockMode
protected LockMode lockMode
-
-
方法详细资料
-
getReturnDiscriminator
public JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator getReturnDiscriminator()
Gets the value of the returnDiscriminator property.- 返回:
- possible object is
JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator
-
setReturnDiscriminator
public void setReturnDiscriminator(JaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator value)
Sets the value of the returnDiscriminator property.- 参数:
value- allowed object isJaxbHbmNativeQueryReturnType.JaxbHbmReturnDiscriminator
-
getReturnProperty
public 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
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- 指定者:
getReturnProperty在接口中NativeQueryNonScalarRootReturn- 返回:
- The nested property mappings
-
getAlias
public String getAlias()
Gets the value of the alias property.- 指定者:
getAlias在接口中NativeQueryNonScalarRootReturn- 返回:
- possible object is
String
-
setAlias
public void setAlias(String value)
Sets the value of the alias property.- 参数:
value- allowed object isString
-
getClazz
public String getClazz()
Gets the value of the clazz property.- 返回:
- possible object is
String
-
setClazz
public void setClazz(String value)
Sets the value of the clazz property.- 参数:
value- allowed object isString
-
getEntityName
public String getEntityName()
Gets the value of the entityName property.- 返回:
- possible object is
String
-
setEntityName
public void setEntityName(String value)
Sets the value of the entityName property.- 参数:
value- allowed object isString
-
getLockMode
public LockMode getLockMode()
Gets the value of the lockMode property.- 指定者:
getLockMode在接口中NativeQueryNonScalarRootReturn- 返回:
- possible object is
String
-
-