Package net.ontopia.topicmaps.query.core
Interface QueryProcessorIF
-
- All Known Implementing Classes:
QueryProcessor,QueryProcessor
public interface QueryProcessorIFPUBLIC: This is the interface that must be implemented by tolog query processors. It is used by client applications to execute queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description QueryResultIFexecute(String query)PUBLIC: Parses and executes the query, returning the results.QueryResultIFexecute(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.QueryResultIFexecute(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.QueryResultIFexecute(String query, DeclarationContextIF context)PUBLIC: Parses and executes the query in the given context, returning the results.voidload(Reader ruleset)Deprecated.use rule import declaration instead, or contextsvoidload(String ruleset)Deprecated.use rule import declaration instead, or contextsParsedQueryIFparse(String query)PUBLIC: Parses the query, returning an object representing the result.ParsedQueryIFparse(String query, DeclarationContextIF context)PUBLIC: Parses the query in the given context, returning an object representing the result.ParsedModificationStatementIFparseUpdate(String statement)PUBLIC: Parses the update statement, returning an object representing the result.ParsedModificationStatementIFparseUpdate(String statement, DeclarationContextIF context)PUBLIC: Parses the update statement in the given context, returning an object representing the result.intupdate(String query)PUBLIC: Runs the update statement, returning the number of modified objects.intupdate(String query, Map<String,?> arguments)PUBLIC: Runs the update statement with the given parameters, returning the number of modified objects.intupdate(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.intupdate(String query, DeclarationContextIF context)PUBLIC: Runs the update statement in the given declaration context, returning the number of modified objects.
-
-
-
Method Detail
-
execute
QueryResultIF execute(String query) throws InvalidQueryException
PUBLIC: Parses and executes the query, returning the results.- Throws:
InvalidQueryException
-
execute
QueryResultIF execute(String query, DeclarationContextIF context) throws InvalidQueryException
PUBLIC: Parses and executes the query in the given context, returning the results.- Throws:
InvalidQueryException- Since:
- 2.1
-
execute
QueryResultIF execute(String query, Map<String,?> arguments) throws InvalidQueryException
PUBLIC: Parses and executes the query binding the parameters in the query to the values given in the 'arguments' map, returning the results.- Throws:
InvalidQueryException- Since:
- 2.0
-
execute
QueryResultIF execute(String query, Map<String,?> arguments, DeclarationContextIF context) throws InvalidQueryException
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.- Throws:
InvalidQueryException- Since:
- 2.1
-
update
int update(String query) throws InvalidQueryException
PUBLIC: Runs the update statement, returning the number of modified objects.- Throws:
InvalidQueryException- Since:
- 5.1.0
-
update
int update(String query, DeclarationContextIF context) throws InvalidQueryException
PUBLIC: Runs the update statement in the given declaration context, returning the number of modified objects.- Throws:
InvalidQueryException- Since:
- 5.1.0
-
update
int update(String query, Map<String,?> arguments) throws InvalidQueryException
PUBLIC: Runs the update statement with the given parameters, returning the number of modified objects.- Throws:
InvalidQueryException- Since:
- 5.1.0
-
update
int update(String query, Map<String,?> arguments, DeclarationContextIF context) throws InvalidQueryException
PUBLIC: Runs the update statement in the given declaration context with the given parameters, returning the number of modified objects.- Throws:
InvalidQueryException- Since:
- 5.1.0
-
parse
ParsedQueryIF parse(String query) throws InvalidQueryException
PUBLIC: Parses the query, returning an object representing the result.- Throws:
InvalidQueryException
-
parse
ParsedQueryIF parse(String query, DeclarationContextIF context) throws InvalidQueryException
PUBLIC: Parses the query in the given context, returning an object representing the result.- Throws:
InvalidQueryException- Since:
- 2.1
-
parseUpdate
ParsedModificationStatementIF parseUpdate(String statement) throws InvalidQueryException
PUBLIC: Parses the update statement, returning an object representing the result.- Throws:
InvalidQueryException- Since:
- 5.1.0
-
parseUpdate
ParsedModificationStatementIF parseUpdate(String statement, DeclarationContextIF context) throws InvalidQueryException
PUBLIC: Parses the update statement in the given context, returning an object representing the result.- Throws:
InvalidQueryException- Since:
- 5.1.0
-
load
void load(String ruleset) throws InvalidQueryException
Deprecated.use rule import declaration instead, or contextsDEPRECATED: Loads a set of rules into the query processor from a string. The rules will then be available for use in queries throughout the lifetime of the current scope.- Throws:
InvalidQueryException
-
load
void load(Reader ruleset) throws InvalidQueryException, IOException
Deprecated.use rule import declaration instead, or contextsDEPRECATED: Loads a set of rules into the query processor from a reader object. The rules will then be available for use in queries throughout the lifetime of the current scope.- Throws:
InvalidQueryExceptionIOException- Since:
- 1.4
-
-