org.objectweb.speedo.query.api
Interface CompiledQuery
- All Known Implementing Classes:
- SpeedoCompiledQuery
- public interface CompiledQuery
Represents a compiled JDO query.
- Author:
- S.Chassande-Barrioz
UNDEFINED
public static final short UNDEFINED
- See Also:
- Constant Field Values
DEFINED
public static final short DEFINED
- See Also:
- Constant Field Values
COMPILED
public static final short COMPILED
- See Also:
- Constant Field Values
getStatus
public short getStatus()
- Returns:
- the query status. The possible values are UNDEFINED, DEFINED
or COMPILED.
getDefinition
public QueryDefinition getDefinition()
- Returns:
- the definition of the query if it is defined, null value
otherwise.
compile
public void compile()
throws SpeedoException,
MedorException,
ExpressionException
- Compiles the query if it is not already done.
- Throws:
SpeedoException
MedorException
ExpressionException
execute
public java.util.Collection execute(java.lang.Object[] parameters,
ProxyManager pm)
throws SpeedoException,
MedorException,
ExpressionException
- Executes the compiled query.
- Parameters:
parameters
- is the JDO parameters of query (does not contains
internal parameter). The order of parameter must match the parameter
declaration.pm
- is the proxy manager representing the execution context. It
also used to load the instance in the result collection.
- Returns:
- a collection of persistent instance. The collection can be empty
but is never null.
- Throws:
SpeedoException
MedorException
ExpressionException
execute
public java.util.Collection execute(java.util.Map parameters,
ProxyManager pm)
throws SpeedoException,
MedorException,
ExpressionException
- Throws:
SpeedoException
MedorException
ExpressionException