public class QOMBuilder extends Object
| Constructor and Description |
|---|
QOMBuilder(javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
javax.jcr.ValueFactory valueFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
andConstraint(javax.jcr.query.qom.Constraint c)
Add a constraint.
|
javax.jcr.query.qom.QueryObjectModel |
createQOM()
Creates the
QueryObjectModel object from for currently provided
data. |
List<javax.jcr.query.qom.Column> |
getColumns()
Gets the columns for this query.
|
javax.jcr.query.qom.Constraint |
getConstraint()
Gets the constraint for this query.
|
List<javax.jcr.query.qom.Ordering> |
getOrderings()
Gets the orderings for this query.
|
javax.jcr.query.qom.QueryObjectModelFactory |
getQOMFactory()
Returns a
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically. |
javax.jcr.query.qom.Source |
getSource()
Returns the node-tuple source for this query.
|
javax.jcr.ValueFactory |
getValueFactory()
This method returns a
ValueFactory that is used to create Value objects
for use when setting repository properties. |
void |
orConstraint(javax.jcr.query.qom.Constraint c)
Adds a constraint.
|
void |
setSource(javax.jcr.query.qom.Source s)
Sets the node-tuple source for this query.
|
public QOMBuilder(javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
javax.jcr.ValueFactory valueFactory)
public void andConstraint(javax.jcr.query.qom.Constraint c)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
c - a constraint to addjavax.jcr.query.InvalidQueryException - if a particular validity test is possible
on this method, the implementation chooses to perform that
test (and not leave it until later, on #createQuery,
and the parameters given fail that testjavax.jcr.RepositoryException - if the operation otherwise failspublic javax.jcr.query.qom.QueryObjectModel createQOM()
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
QueryObjectModel object from for currently provided
data.javax.jcr.query.InvalidQueryException - if a particular validity test is possible
on this method, the implementation chooses to perform that test
and the parameters given fail that test.javax.jcr.RepositoryException - if the operation otherwise failspublic List<javax.jcr.query.qom.Column> getColumns()
Column objects array of zero or more
columns; non-nullpublic javax.jcr.query.qom.Constraint getConstraint()
public List<javax.jcr.query.qom.Ordering> getOrderings()
Ordering objects or an empty list if
non were defined yetpublic javax.jcr.query.qom.QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically.QueryObjectModelFactory objectpublic javax.jcr.query.qom.Source getSource()
public javax.jcr.ValueFactory getValueFactory()
ValueFactory that is used to create Value objects
for use when setting repository properties.ValueFactoryjavax.jcr.RepositoryException - if an error occurspublic void orConstraint(javax.jcr.query.qom.Constraint c)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
c - a constraint to addjavax.jcr.query.InvalidQueryException - if a particular validity test is possible
on this method, the implementation chooses to perform that
test (and not leave it until later, on #createQuery,
and the parameters given fail that testjavax.jcr.RepositoryException - if the operation otherwise failspublic void setSource(javax.jcr.query.qom.Source s)
s - the node-tuple source for this queryCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.