Jadex 0.941

jadex.runtime
Interface IQuery

All Superinterfaces:
IElement, IExpression

public interface IQuery
extends IExpression

The interface for a query.


Method Summary
 Object execute()
          Execute the query.
 Object execute(String name, Object value)
          Execute the query using a local parameter.
 Object execute(Tuple[] parameters)
          Execute the query using local parameters.
 Object getParameter(String name)
          Get an expression parameter.
 void setParameter(String name, Object value)
          Set an expression parameter.
 
Methods inherited from interface jadex.runtime.IExpression
getValue, refresh
 
Methods inherited from interface jadex.runtime.IElement
getModelElement, getName
 

Method Detail

setParameter

public void setParameter(String name,
                         Object value)
Set an expression parameter.

Specified by:
setParameter in interface IExpression
Parameters:
name - The parameter name.
value - The parameter value.

getParameter

public Object getParameter(String name)
Get an expression parameter.

Specified by:
getParameter in interface IExpression
Parameters:
name - The parameter name.
Returns:
The parameter value.

execute

public Object execute()
Execute the query.

Specified by:
execute in interface IExpression
Returns:
the result value of the query.

execute

public Object execute(String name,
                      Object value)
Execute the query using a local parameter.

Specified by:
execute in interface IExpression
Parameters:
name - The name of the local parameter.
value - The value of the local parameter.
Returns:
the result value of the query.

execute

public Object execute(Tuple[] parameters)
Execute the query using local parameters.

Specified by:
execute in interface IExpression
Parameters:
parameters - The local parameters (array of name-value pairs).
Returns:
the result value of the query.

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.