Documente Academic
Documente Profesional
Documente Cultură
The method setClass introduces the name of the candidate class in the type
namespace. The method declareImports introduces the names of the imported class or
interface types in the type namespace. Imported type names must be unique. When
used (e.g. in a parameter declaration, cast expression, etc.) a type name must be
the name of the candidate class, the name of a class or interface imported by
method declareImports, or denote a class or interface from the same package as the
candidate class.
The method setClass introduces the names of the candidate class fields.
The result of the query by default is a list of result class instances, but might
be specified via setResult. The class of the result by default is the candidate
class, but might be specified via setResultClass.
The Query interface provides methods which execute the query based on the
parameters given. They return a single instance or a List of result class instances
which the user can iterate to get results. The signature of the execute methods
specifies that they return an Object which must be cast to the appropriate result
by the user.
Any parameters passed to the execute methods are used only for this execution, and
are not remembered for future execution.