Class QueryManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl
-
- All Implemented Interfaces:
QueryManager
public class QueryManagerImpl extends 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(String statement, String language)
QueryResult
executeQuery(String statement, String language, Optional<Long> limit, Optional<Long> offset, HashMap<String,Value> bindVariableMap)
QueryObjectModelFactory
getQOMFactory()
Query
getQuery(Node node)
String[]
getSupportedQueryLanguages()
List<String>
parse(String statement, String language)
Parse the query and get the bind variable names.
-
-
-
Constructor Detail
-
QueryManagerImpl
public QueryManagerImpl(SessionContext sessionContext)
-
-
Method Detail
-
createQuery
public QueryImpl createQuery(String statement, 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 String[] getSupportedQueryLanguages() throws RepositoryException
- Specified by:
getSupportedQueryLanguages
in interfaceQueryManager
- Throws:
RepositoryException
-
parse
public List<String> parse(String statement, 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(String statement, String language, Optional<Long> limit, Optional<Long> offset, HashMap<String,Value> bindVariableMap) throws RepositoryException
- Throws:
RepositoryException
-
-