public class SqlResultSetMapping extends Object
@Target({TYPE}) @Retention(RUNTIME) public @interface SqlResultSetMapping { String name(); EntityResult[] entities() default {}; ConstructorResult[] classes() default{}; ColumnResult[] columns() default {}; }
<p>Java class for sql-result-set-mapping complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="sql-result-set-mapping"> <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="entity-result" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}entity-result" maxOccurs="unbounded" minOccurs="0"/> <element name="constructor-result" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}constructor-result" maxOccurs="unbounded" minOccurs="0"/> <element name="column-result" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}column-result" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected List<ColumnResult> |
columnResult |
protected List<ConstructorResult> |
constructorResult |
protected String |
description |
protected List<EntityResult> |
entityResult |
protected String |
name |
| Constructor and Description |
|---|
SqlResultSetMapping() |
| Modifier and Type | Method and Description |
|---|---|
List<ColumnResult> |
getColumnResult()
Gets the value of the columnResult property.
|
List<ConstructorResult> |
getConstructorResult()
Gets the value of the constructorResult property.
|
String |
getDescription()
Gets the value of the description property.
|
List<EntityResult> |
getEntityResult()
Gets the value of the entityResult property.
|
String |
getName()
Gets the value of the name property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setName(String value)
Sets the value of the name property.
|
protected String description
protected List<EntityResult> entityResult
protected List<ConstructorResult> constructorResult
protected List<ColumnResult> columnResult
protected String name
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<EntityResult> getEntityResult()
Gets the value of the entityResult 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 entityResult property.
<p> For example, to add a new item, do as follows: <pre> getEntityResult().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
EntityResult
public List<ConstructorResult> getConstructorResult()
Gets the value of the constructorResult 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 constructorResult property.
<p> For example, to add a new item, do as follows: <pre> getConstructorResult().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
ConstructorResult
public List<ColumnResult> getColumnResult()
Gets the value of the columnResult 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 columnResult property.
<p> For example, to add a new item, do as follows: <pre> getColumnResult().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
ColumnResult
public String getName()
Gets the value of the name property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.