Class ProxyQuery
- java.lang.Object
-
- org.apache.sling.jcr.base.internal.mount.ProxyWrapper<javax.jcr.query.Query>
-
- org.apache.sling.jcr.base.internal.mount.ProxyQuery
-
- All Implemented Interfaces:
javax.jcr.query.Query
- Direct Known Subclasses:
ProxyQueryObjectModel
public class ProxyQuery extends ProxyWrapper<javax.jcr.query.Query> implements javax.jcr.query.Query
-
-
Constructor Summary
Constructors Constructor Description ProxyQuery(ProxySession<?> mountSession, javax.jcr.query.Query delegate, javax.jcr.query.Query delegate2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindValue(String varName, javax.jcr.Value value)
javax.jcr.query.QueryResult
execute()
String[]
getBindVariableNames()
String
getLanguage()
String
getStatement()
String
getStoredQueryPath()
void
setLimit(long limit)
void
setOffset(long offset)
javax.jcr.Node
storeAsNode(String absPath)
-
-
-
Constructor Detail
-
ProxyQuery
public ProxyQuery(ProxySession<?> mountSession, javax.jcr.query.Query delegate, javax.jcr.query.Query delegate2)
-
-
Method Detail
-
execute
public javax.jcr.query.QueryResult execute() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
- Specified by:
execute
in interfacejavax.jcr.query.Query
- Throws:
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
-
setLimit
public void setLimit(long limit)
- Specified by:
setLimit
in interfacejavax.jcr.query.Query
-
setOffset
public void setOffset(long offset)
- Specified by:
setOffset
in interfacejavax.jcr.query.Query
-
getStatement
public String getStatement()
- Specified by:
getStatement
in interfacejavax.jcr.query.Query
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interfacejavax.jcr.query.Query
-
getStoredQueryPath
public String getStoredQueryPath() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
- Specified by:
getStoredQueryPath
in interfacejavax.jcr.query.Query
- Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
-
storeAsNode
public javax.jcr.Node storeAsNode(String absPath) throws javax.jcr.ItemExistsException, javax.jcr.PathNotFoundException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
- Specified by:
storeAsNode
in interfacejavax.jcr.query.Query
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
bindValue
public void bindValue(String varName, javax.jcr.Value value) throws IllegalArgumentException, javax.jcr.RepositoryException
- Specified by:
bindValue
in interfacejavax.jcr.query.Query
- Throws:
IllegalArgumentException
javax.jcr.RepositoryException
-
getBindVariableNames
public String[] getBindVariableNames() throws javax.jcr.RepositoryException
- Specified by:
getBindVariableNames
in interfacejavax.jcr.query.Query
- Throws:
javax.jcr.RepositoryException
-
-