public interface QueryEngine
What query languages are supported depends on the registered query parsers.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INTERNAL_SQL2_QUERY
The suffix for internal SQL-2 statements.
|
static java.util.Map<java.lang.String,PropertyValue> |
NO_BINDINGS
Empty set of variables bindings.
|
static java.util.Map<java.lang.String,java.lang.String> |
NO_MAPPINGS
Empty set of namespace prefix mappings.
|
Modifier and Type | Method and Description |
---|---|
Result |
executeQuery(java.lang.String statement,
java.lang.String language,
long limit,
long offset,
java.util.Map<java.lang.String,? extends PropertyValue> bindings,
java.util.Map<java.lang.String,java.lang.String> mappings)
Execute a query and get the result.
|
Result |
executeQuery(java.lang.String statement,
java.lang.String language,
java.util.Map<java.lang.String,? extends PropertyValue> bindings,
java.util.Map<java.lang.String,java.lang.String> mappings)
Execute a query and get the result.
|
java.util.List<java.lang.String> |
getBindVariableNames(java.lang.String statement,
java.lang.String language,
java.util.Map<java.lang.String,java.lang.String> mappings)
Parse the query (check if it's valid) and get the list of bind variable names.
|
java.util.Set<java.lang.String> |
getSupportedQueryLanguages()
Get the set of supported query languages.
|
static final java.lang.String INTERNAL_SQL2_QUERY
static final java.util.Map<java.lang.String,PropertyValue> NO_BINDINGS
executeQuery(String, String, long, long, Map, Map)
when
there are no variables in a query.static final java.util.Map<java.lang.String,java.lang.String> NO_MAPPINGS
getBindVariableNames(String, String, Map)
and
executeQuery(String, String, long, long, Map, Map)
when
there are no local namespace mappings.java.util.Set<java.lang.String> getSupportedQueryLanguages()
java.util.List<java.lang.String> getBindVariableNames(java.lang.String statement, java.lang.String language, java.util.Map<java.lang.String,java.lang.String> mappings) throws java.text.ParseException
statement
- query statementlanguage
- query languagemappings
- namespace prefix mappingsjava.text.ParseException
Result executeQuery(java.lang.String statement, java.lang.String language, long limit, long offset, java.util.Map<java.lang.String,? extends PropertyValue> bindings, java.util.Map<java.lang.String,java.lang.String> mappings) throws java.text.ParseException
statement
- the query statementlanguage
- the languagelimit
- the maximum result set size (may not be negative)offset
- the number of rows to skip (may not be negative)bindings
- the bind variable value bindingsmappings
- namespace prefix mappingsjava.text.ParseException
- if the statement could not be parsedjava.lang.IllegalArgumentException
- if there was an error executing the queryResult executeQuery(java.lang.String statement, java.lang.String language, java.util.Map<java.lang.String,? extends PropertyValue> bindings, java.util.Map<java.lang.String,java.lang.String> mappings) throws java.text.ParseException
statement
- the query statementlanguage
- the languagebindings
- the bind variable value bindingsmappings
- namespace prefix mappingsjava.text.ParseException
- if the statement could not be parsedjava.lang.IllegalArgumentException
- if there was an error executing the query"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"