public class NamedStoredProcedureQuery extends Object
@Target({TYPE}) @Retention(RUNTIME) public @interface NamedStoredProcedureQuery { String name(); String procedureName(); StoredProcedureParameter[] parameters() default {}; Class[] resultClasses() default {}; String[] resultSetMappings() default{}; QueryHint[] hints() default {}; }
<p>Java class for named-stored-procedure-query complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="named-stored-procedure-query"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="parameter" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}stored-procedure-parameter" maxOccurs="unbounded" minOccurs="0"/> <element name="result-class" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> <element name="result-set-mapping" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> <element name="hint" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}query-hint" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="procedure-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected List<QueryHint> |
hint |
protected String |
name |
protected List<StoredProcedureParameter> |
parameter |
protected String |
procedureName |
protected List<String> |
resultClass |
protected List<String> |
resultSetMapping |
| Constructor and Description |
|---|
NamedStoredProcedureQuery() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the value of the description property.
|
List<QueryHint> |
getHint()
Gets the value of the hint property.
|
String |
getName()
Gets the value of the name property.
|
List<StoredProcedureParameter> |
getParameter()
Gets the value of the parameter property.
|
String |
getProcedureName()
Gets the value of the procedureName property.
|
List<String> |
getResultClass()
Gets the value of the resultClass property.
|
List<String> |
getResultSetMapping()
Gets the value of the resultSetMapping property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setProcedureName(String value)
Sets the value of the procedureName property.
|
protected String description
protected List<StoredProcedureParameter> parameter
protected String name
protected String procedureName
public String getDescription()
Gets the value of the description property.
Stringpublic void setDescription(String value)
Sets the value of the description property.
value - allowed object is
Stringpublic List<StoredProcedureParameter> getParameter()
Gets the value of the parameter 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 parameter property.
<p> For example, to add a new item, do as follows: <pre> getParameter().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
StoredProcedureParameter
public List<String> getResultClass()
Gets the value of the resultClass 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 resultClass property.
<p> For example, to add a new item, do as follows: <pre> getResultClass().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
String
public List<String> getResultSetMapping()
Gets the value of the resultSetMapping 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 resultSetMapping property.
<p> For example, to add a new item, do as follows: <pre> getResultSetMapping().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
String
public List<QueryHint> getHint()
Gets the value of the hint 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 hint property.
<p> For example, to add a new item, do as follows: <pre> getHint().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
QueryHint
public String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic String getProcedureName()
Gets the value of the procedureName property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.