01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.query;
05:
06: import javax.jcr.RepositoryException;
07: import javax.jcr.Value;
08:
09: /**
10: * A prepared query. A new prepared query is created by calling
11: * <code>QueryManager.createPreparedQuery</code>.
12: *
13: * @since JCR 2.0
14: */
15: public interface PreparedQuery extends Query {
16:
17: /**
18: * Binds the given <code>value</code> to the variable named <code>varName</code>.
19: *
20: * @param varName name of variable in query
21: * @param value value to bind
22: * @throws IllegalArgumentException if <code>varName</code> is not a valid variable in this query.
23: * @throws RepositoryException if an error occurs.
24: */
25: public void bindValue(String varName, Value value)
26: throws IllegalArgumentException, RepositoryException;
27: }
|