org.apache.openejb.jee
Class Query

java.lang.Object
  extended by org.apache.openejb.jee.Query

public class Query
extends 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".


Field Summary
protected  Text description
           
protected  String ejbQl
           
protected  String id
           
protected  QueryMethod queryMethod
           
protected  ResultTypeMapping resultTypeMapping
           
 
Constructor Summary
Query()
           
 
Method Summary
 Text getDescription()
           
 String getEjbQl()
           
 String getId()
           
 QueryMethod getQueryMethod()
           
 ResultTypeMapping getResultTypeMapping()
           
 void setDescription(Text value)
           
 void setEjbQl(String value)
           
 void setId(String value)
           
 void setQueryMethod(QueryMethod value)
           
 void setResultTypeMapping(ResultTypeMapping value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected Text description

queryMethod

protected QueryMethod queryMethod

resultTypeMapping

protected ResultTypeMapping resultTypeMapping

ejbQl

protected String ejbQl

id

protected String id
Constructor Detail

Query

public Query()
Method Detail

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 String getEjbQl()

setEjbQl

public void setEjbQl(String value)

getId

public String getId()

setId

public void setId(String value)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.