org.apache.jackrabbit.core.query
Interface ExecutableQuery

All Known Implementing Classes:
AbstractQueryImpl, QueryImpl, QueryObjectModelImpl

public interface ExecutableQuery

Specifies an interface for a query object implementation that can just be executed.

See Also:
QueryImpl

Method Summary
 void bindValue(Name varName, javax.jcr.Value value)
          Binds the given value to the variable named varName.
 javax.jcr.query.QueryResult execute(long offset, long limit)
          Executes this query and returns a QueryResult.
 

Method Detail

execute

javax.jcr.query.QueryResult execute(long offset,
                                    long limit)
                                    throws javax.jcr.RepositoryException
Executes this query and returns a QueryResult.

Parameters:
offset - the offset in the total result set
limit - the maximum result size
Returns:
a QueryResult
Throws:
javax.jcr.RepositoryException - if an error occurs

bindValue

void bindValue(Name varName,
               javax.jcr.Value value)
               throws IllegalArgumentException,
                      javax.jcr.RepositoryException
Binds the given value to the variable named varName.

Parameters:
varName - name of variable in query
value - value to bind
Throws:
IllegalArgumentException - if varName is not a valid variable in this query.
javax.jcr.RepositoryException - if an error occurs.


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.