org.ow2.jonas.deployment.ejb.xml
Class Query

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.ejb.xml.Query
All Implemented Interfaces:
Serializable, Element

public class Query
extends AbsElement

This class defines the implementation of the element query

Author:
JOnAS team
See Also:
Serialized Form

Constructor Summary
Query()
          Constructor
 
Method Summary
 String getDescription()
          Gets the description
 String getEjbQl()
          Gets the ejb-ql
 QueryMethod getQueryMethod()
          Gets the query-method
 String getResultTypeMapping()
          Gets the result-type-mapping
 void setDescription(String description)
          Set the description
 void setEjbQl(String ejbQl)
          Set the ejb-ql
 void setQueryMethod(QueryMethod queryMethod)
          Set the query-method
 void setResultTypeMapping(String resultTypeMapping)
          Set the result-type-mapping
 String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Query

public Query()
Constructor

Method Detail

getDescription

public String getDescription()
Gets the description

Returns:
the description

setDescription

public void setDescription(String description)
Set the description

Parameters:
description - description

getQueryMethod

public QueryMethod getQueryMethod()
Gets the query-method

Returns:
the query-method

setQueryMethod

public void setQueryMethod(QueryMethod queryMethod)
Set the query-method

Parameters:
queryMethod - queryMethod

getResultTypeMapping

public String getResultTypeMapping()
Gets the result-type-mapping

Returns:
the result-type-mapping

setResultTypeMapping

public void setResultTypeMapping(String resultTypeMapping)
Set the result-type-mapping

Parameters:
resultTypeMapping - resultTypeMapping

getEjbQl

public String getEjbQl()
Gets the ejb-ql

Returns:
the ejb-ql

setEjbQl

public void setEjbQl(String ejbQl)
Set the ejb-ql

Parameters:
ejbQl - ejbQl

toXML

public String toXML(int indent)
Represents this element by it's XML description.

Specified by:
toXML in interface Element
Specified by:
toXML in class AbsElement
Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.


Copyright © 2010 OW2 Consortium. All Rights Reserved.