@ProviderType public interface QueryEngine
What query languages are supported depends on the registered query parsers.
Modifier and Type | Field and Description |
---|---|
static String |
INTERNAL_SQL2_QUERY
The suffix for internal SQL-2 statements.
|
static Map<String,PropertyValue> |
NO_BINDINGS
Empty set of variables bindings.
|
static Map<String,String> |
NO_MAPPINGS
Empty set of namespace prefix mappings.
|
Modifier and Type | Method and Description |
---|---|
Result |
executeQuery(String statement,
String language,
long limit,
long offset,
Map<String,? extends PropertyValue> bindings,
Map<String,String> mappings)
Execute a query and get the result.
|
Result |
executeQuery(String statement,
String language,
Map<String,? extends PropertyValue> bindings,
Map<String,String> mappings)
Execute a query and get the result.
|
List<String> |
getBindVariableNames(String statement,
String language,
Map<String,String> mappings)
Parse the query (check if it's valid) and get the list of bind variable names.
|
Set<String> |
getSupportedQueryLanguages()
Get the set of supported query languages.
|
static final String INTERNAL_SQL2_QUERY
static final Map<String,PropertyValue> NO_BINDINGS
executeQuery(String, String, long, long, Map, Map)
when
there are no variables in a query.static final Map<String,String> NO_MAPPINGS
getBindVariableNames(String, String, Map)
and
executeQuery(String, String, long, long, Map, Map)
when
there are no local namespace mappings.Set<String> getSupportedQueryLanguages()
List<String> getBindVariableNames(String statement, String language, Map<String,String> mappings) throws ParseException
statement
- query statementlanguage
- query languagemappings
- namespace prefix mappingsParseException
Result executeQuery(String statement, String language, long limit, long offset, Map<String,? extends PropertyValue> bindings, Map<String,String> mappings) throws 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 mappingsParseException
- if the statement could not be parsedIllegalArgumentException
- if there was an error executing the queryResult executeQuery(String statement, String language, Map<String,? extends PropertyValue> bindings, Map<String,String> mappings) throws ParseException
statement
- the query statementlanguage
- the languagebindings
- the bind variable value bindingsmappings
- namespace prefix mappingsParseException
- if the statement could not be parsedIllegalArgumentException
- if there was an error executing the queryCopyright © 2010 - 2020 Adobe. All Rights Reserved