public interface QueryProcessorIF
Modifier and Type | Method and Description |
---|---|
QueryResultIF |
execute(String query)
PUBLIC: Parses and executes the query, returning the results.
|
QueryResultIF |
execute(String query,
DeclarationContextIF context)
PUBLIC: Parses and executes the query in the given context,
returning the results.
|
QueryResultIF |
execute(String query,
Map<String,?> arguments)
PUBLIC: Parses and executes the query binding the parameters in
the query to the values given in the 'arguments' map, returning
the results.
|
QueryResultIF |
execute(String query,
Map<String,?> arguments,
DeclarationContextIF context)
PUBLIC: Parses and executes the query in the given context
binding the parameters in the query to the values given in the
'arguments' map, returning the results.
|
void |
load(Reader ruleset)
Deprecated.
use rule import declaration instead, or contexts
|
void |
load(String ruleset)
Deprecated.
use rule import declaration instead, or contexts
|
ParsedQueryIF |
parse(String query)
PUBLIC: Parses the query, returning an object representing the
result.
|
ParsedQueryIF |
parse(String query,
DeclarationContextIF context)
PUBLIC: Parses the query in the given context, returning an
object representing the result.
|
ParsedModificationStatementIF |
parseUpdate(String statement)
PUBLIC: Parses the update statement, returning an object
representing the result.
|
ParsedModificationStatementIF |
parseUpdate(String statement,
DeclarationContextIF context)
PUBLIC: Parses the update statement in the given context,
returning an object representing the result.
|
int |
update(String query)
PUBLIC: Runs the update statement, returning the number of
modified objects.
|
int |
update(String query,
DeclarationContextIF context)
PUBLIC: Runs the update statement in the given declaration
context, returning the number of modified objects.
|
int |
update(String query,
Map<String,?> arguments)
PUBLIC: Runs the update statement with the given parameters,
returning the number of modified objects.
|
int |
update(String query,
Map<String,?> arguments,
DeclarationContextIF context)
PUBLIC: Runs the update statement in the given declaration
context with the given parameters, returning the number of
modified objects.
|
QueryResultIF execute(String query) throws InvalidQueryException
InvalidQueryException
QueryResultIF execute(String query, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException
QueryResultIF execute(String query, Map<String,?> arguments) throws InvalidQueryException
InvalidQueryException
QueryResultIF execute(String query, Map<String,?> arguments, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException
int update(String query) throws InvalidQueryException
InvalidQueryException
int update(String query, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException
int update(String query, Map<String,?> arguments) throws InvalidQueryException
InvalidQueryException
int update(String query, Map<String,?> arguments, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException
ParsedQueryIF parse(String query) throws InvalidQueryException
InvalidQueryException
ParsedQueryIF parse(String query, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException
ParsedModificationStatementIF parseUpdate(String statement) throws InvalidQueryException
InvalidQueryException
ParsedModificationStatementIF parseUpdate(String statement, DeclarationContextIF context) throws InvalidQueryException
InvalidQueryException
void load(String ruleset) throws InvalidQueryException
InvalidQueryException
void load(Reader ruleset) throws InvalidQueryException, IOException
InvalidQueryException
IOException