public interface QueryManager extends QueryManager
QueryManager
interface that returns the ModeShape-specific
extension interfaces from getQOMFactory()
and getQuery(Node)
.Modifier and Type | Method and Description |
---|---|
Query |
createQuery(String statement,
String language) |
Query |
createQuery(String statement,
String language,
Locale locale)
Extends the default
createQuery(String, String) method by allowing an additional Locale
to be passed in. |
QueryObjectModelFactory |
getQOMFactory() |
Query |
getQuery(Node node) |
getSupportedQueryLanguages
QueryObjectModelFactory getQOMFactory()
getQOMFactory
in interface QueryManager
Query createQuery(String statement, String language) throws InvalidQueryException, RepositoryException
createQuery
in interface QueryManager
InvalidQueryException
RepositoryException
Query createQuery(String statement, String language, Locale locale) throws InvalidQueryException, RepositoryException
createQuery(String, String)
method by allowing an additional Locale
to be passed in. This locale will be taken into account when performing comparisons of string properties.statement
- a String
language
- a String
locale
- a Locale
, may not be null
Query
objectInvalidQueryException
- if the query statement is syntactically invalid or the specified language is not supported.RepositoryException
- if another error occurs.createQuery(String, String)
Query getQuery(Node node) throws InvalidQueryException, RepositoryException
getQuery
in interface QueryManager
InvalidQueryException
RepositoryException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.