org.apache.jackrabbit.core.query.jsr283
Interface PreparedQuery

All Superinterfaces:
Query
All Known Subinterfaces:
QueryObjectModel
All Known Implementing Classes:
PreparedQueryImpl, QueryObjectModelImpl

public interface PreparedQuery
extends Query

A prepared query. A new prepared query is created by calling QueryManager.createPreparedQuery.

Since:
JCR 2.0

Field Summary
 
Fields inherited from interface javax.jcr.query.Query
SQL, XPATH
 
Method Summary
 void bindValue(String varName, Value value)
          Binds the given value to the variable named varName.
 
Methods inherited from interface javax.jcr.query.Query
execute, getLanguage, getStatement, getStoredQueryPath, storeAsNode
 

Method Detail

bindValue

void bindValue(String 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.


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