Package org.apache.openejb.jee.jpa
Class EntityResult
- java.lang.Object
-
- org.apache.openejb.jee.jpa.EntityResult
-
public class EntityResult extends Object
Target({}) @Retention(RUNTIME) public @interface EntityResult { Class entityClass(); FieldResult[] fields() default {}; String discriminatorColumn() default ""; }Java class for entity-result complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="entity-result"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="field-result" type="{http://java.sun.com/xml/ns/persistence/orm}field-result" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="discriminator-column" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="entity-class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdiscriminatorColumnprotected StringentityClassprotected List<FieldResult>fieldResult
-
Constructor Summary
Constructors Constructor Description EntityResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDiscriminatorColumn()Gets the value of the discriminatorColumn property.StringgetEntityClass()Gets the value of the entityClass property.List<FieldResult>getFieldResult()Gets the value of the fieldResult property.voidsetDiscriminatorColumn(String value)Sets the value of the discriminatorColumn property.voidsetEntityClass(String value)Sets the value of the entityClass property.
-
-
-
Field Detail
-
fieldResult
protected List<FieldResult> fieldResult
-
discriminatorColumn
protected String discriminatorColumn
-
entityClass
protected String entityClass
-
-
Method Detail
-
getFieldResult
public List<FieldResult> getFieldResult()
Gets the value of the fieldResult 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 asetmethod for the fieldResult property. For example, to add a new item, do as follows:getFieldResult().add(newItem);Objects of the following type(s) are allowed in the listFieldResult
-
getDiscriminatorColumn
public String getDiscriminatorColumn()
Gets the value of the discriminatorColumn property.- Returns:
- possible object is
String
-
setDiscriminatorColumn
public void setDiscriminatorColumn(String value)
Sets the value of the discriminatorColumn property.- Parameters:
value- allowed object isString
-
getEntityClass
public String getEntityClass()
Gets the value of the entityClass property.- Returns:
- possible object is
String
-
-