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, Value value)
          Binds the given value to the variable named varName.
 QueryResult execute(long offset, long limit)
          Executes this query and returns a QueryResult.
 Name[] getBindVariableNames()
           
 

Method Detail

execute

QueryResult execute(long offset,
                    long limit)
                    throws 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:
RepositoryException - if an error occurs

bindValue

void bindValue(Name varName,
               Value value)
               throws IllegalArgumentException,
                      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.
RepositoryException - if an error occurs.

getBindVariableNames

Name[] getBindVariableNames()
                            throws RepositoryException
Returns:
the names of the bind variables in this query.
Throws:
RepositoryException - if an error occurs.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.