Class MockQuery
java.lang.Object
org.apache.sling.testing.mock.jcr.MockQuery
- All Implemented Interfaces:
javax.jcr.query.Query
Mock implementation of
Query.-
Field Summary
Fields inherited from interface javax.jcr.query.Query
JCR_JQOM, JCR_SQL2, SQL, XPATH -
Method Summary
-
Method Details
-
execute
public javax.jcr.query.QueryResult execute() throws javax.jcr.RepositoryException- Specified by:
executein interfacejavax.jcr.query.Query- Throws:
javax.jcr.RepositoryException
-
setLimit
public void setLimit(long limit) - Specified by:
setLimitin interfacejavax.jcr.query.Query
-
getLimit
public long getLimit() throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
setOffset
public void setOffset(long offset) - Specified by:
setOffsetin interfacejavax.jcr.query.Query
-
getOffset
public long getOffset() throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
getStatement
- Specified by:
getStatementin interfacejavax.jcr.query.Query
-
getLanguage
- Specified by:
getLanguagein interfacejavax.jcr.query.Query
-
bindValue
- Specified by:
bindValuein interfacejavax.jcr.query.Query- Throws:
javax.jcr.RepositoryException
-
getBindVariableNames
- Specified by:
getBindVariableNamesin interfacejavax.jcr.query.Query- Throws:
javax.jcr.RepositoryException
-
getBindVariables
- Throws:
javax.jcr.RepositoryException
-
getStoredQueryPath
- Specified by:
getStoredQueryPathin interfacejavax.jcr.query.Query- Throws:
javax.jcr.RepositoryException
-
storeAsNode
- Specified by:
storeAsNodein interfacejavax.jcr.query.Query- Throws:
javax.jcr.RepositoryException
-