org.apache.openejb.jee
Class Query
java.lang.Object
org.apache.openejb.jee.Query
public class Query
- extends java.lang.Object
The queryType defines a finder or select
query. It contains
- an optional description of the query
- the specification of the finder or select
method it is used by
- an optional specification of the result type
mapping, if the query is for a select method
and entity objects are returned.
- the EJB QL query string that defines the query.
Queries that are expressible in EJB QL must use the ejb-ql
element to specify the query. If a query is not expressible
in EJB QL, the description element should be used to
describe the semantics of the query and the ejb-ql element
should be empty.
The result-type-mapping is an optional element. It can only
be present if the query-method specifies a select method
that returns entity objects. The default value for the
result-type-mapping element is "Local".
Constructor Summary |
Query()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected Text description
queryMethod
protected QueryMethod queryMethod
resultTypeMapping
protected ResultTypeMapping resultTypeMapping
ejbQl
protected java.lang.String ejbQl
id
protected java.lang.String id
Query
public Query()
getDescription
public Text getDescription()
setDescription
public void setDescription(Text value)
getQueryMethod
public QueryMethod getQueryMethod()
setQueryMethod
public void setQueryMethod(QueryMethod value)
getResultTypeMapping
public ResultTypeMapping getResultTypeMapping()
setResultTypeMapping
public void setResultTypeMapping(ResultTypeMapping value)
getEjbQl
public java.lang.String getEjbQl()
setEjbQl
public void setEjbQl(java.lang.String value)
getId
public java.lang.String getId()
setId
public void setId(java.lang.String value)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.