Class QueryManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl
-
- All Implemented Interfaces:
QueryManager
public class QueryManagerImpl extends java.lang.Object implements QueryManager
The implementation of the corresponding JCR interface.
-
-
Constructor Summary
Constructors Constructor Description QueryManagerImpl(SessionContext sessionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryImpl
createQuery(java.lang.String statement, java.lang.String language)
QueryResult
executeQuery(java.lang.String statement, java.lang.String language, java.util.Optional<java.lang.Long> limit, java.util.Optional<java.lang.Long> offset, java.util.HashMap<java.lang.String,Value> bindVariableMap)
QueryObjectModelFactory
getQOMFactory()
Query
getQuery(Node node)
java.lang.String[]
getSupportedQueryLanguages()
java.util.List<java.lang.String>
parse(java.lang.String statement, java.lang.String language)
Parse the query and get the bind variable names.
-
-
-
Constructor Detail
-
QueryManagerImpl
public QueryManagerImpl(SessionContext sessionContext)
-
-
Method Detail
-
createQuery
public QueryImpl createQuery(java.lang.String statement, java.lang.String language) throws RepositoryException
- Specified by:
createQuery
in interfaceQueryManager
- Throws:
RepositoryException
-
getQOMFactory
public QueryObjectModelFactory getQOMFactory()
- Specified by:
getQOMFactory
in interfaceQueryManager
-
getQuery
public Query getQuery(Node node) throws RepositoryException
- Specified by:
getQuery
in interfaceQueryManager
- Throws:
RepositoryException
-
getSupportedQueryLanguages
public java.lang.String[] getSupportedQueryLanguages() throws RepositoryException
- Specified by:
getSupportedQueryLanguages
in interfaceQueryManager
- Throws:
RepositoryException
-
parse
public java.util.List<java.lang.String> parse(java.lang.String statement, java.lang.String language) throws InvalidQueryException
Parse the query and get the bind variable names.- Parameters:
statement
- the query statementlanguage
- the query language- Returns:
- the bind variable names
- Throws:
InvalidQueryException
-
executeQuery
public QueryResult executeQuery(java.lang.String statement, java.lang.String language, java.util.Optional<java.lang.Long> limit, java.util.Optional<java.lang.Long> offset, java.util.HashMap<java.lang.String,Value> bindVariableMap) throws RepositoryException
- Throws:
RepositoryException
-
-