|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.query.AbstractQueryImpl
org.apache.jackrabbit.core.query.QueryImpl
org.apache.jackrabbit.core.query.PreparedQueryImpl
public class PreparedQueryImpl
PreparedQueryImpl
...
Field Summary | |
---|---|
protected ExecutablePreparedQuery |
prepQuery
The executable prepared query. |
protected QueryObjectModelTree |
qomTree
The query object model tree. |
Fields inherited from class org.apache.jackrabbit.core.query.QueryImpl |
---|
handler, JCR_JQOM, JCR_SQL2, language, node, query, session, statement |
Fields inherited from interface javax.jcr.query.Query |
---|
SQL, XPATH |
Constructor Summary | |
---|---|
PreparedQueryImpl()
|
Method Summary | |
---|---|
void |
bindValue(String varName,
Value value)
Binds the given value to the variable named
varName . |
void |
init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
Node node)
Initializes a query instance from a nt:query node. |
void |
init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
QueryObjectModelTree qomTree,
String language)
Initializes a query instance from a query object model. |
void |
init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
String statement,
String language)
Initializes a query instance from a query string. |
Methods inherited from class org.apache.jackrabbit.core.query.QueryImpl |
---|
checkInitialized, checkNotInitialized, execute, getLanguage, getStatement, getStoredQueryPath, setInitialized, setLimit, setOffset, storeAsNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jcr.query.Query |
---|
execute, getLanguage, getStatement, getStoredQueryPath, storeAsNode |
Field Detail |
---|
protected ExecutablePreparedQuery prepQuery
protected QueryObjectModelTree qomTree
Constructor Detail |
---|
public PreparedQueryImpl()
Method Detail |
---|
public void init(SessionImpl session, ItemManager itemMgr, QueryHandler handler, String statement, String language) throws InvalidQueryException
AbstractQueryImpl
init
in class QueryImpl
session
- the session of the user executing this query.itemMgr
- the item manager of the session executing this query.handler
- the query handler of the search index.statement
- the query statement.language
- the syntax of the query statement.
InvalidQueryException
- if the query statement is invalid according
to the specified language
.public void init(SessionImpl session, ItemManager itemMgr, QueryHandler handler, Node node) throws InvalidQueryException, RepositoryException
AbstractQueryImpl
init
in class QueryImpl
session
- the session of the user executing this query.itemMgr
- the item manager of the session executing this query.handler
- the query handler of the search index.node
- a node of type nt:query
.
InvalidQueryException
- If node
is not a valid persisted query
(that is, a node of type nt:query
).
RepositoryException
- if another error occurspublic void init(SessionImpl session, ItemManager itemMgr, QueryHandler handler, QueryObjectModelTree qomTree, String language) throws InvalidQueryException, RepositoryException
AbstractQueryImpl
init
in class QueryImpl
session
- the session of the user executing this query.itemMgr
- the item manager of the session executing this query.handler
- the query handler of the search index.qomTree
- the query object model tree.language
- the original query syntax from where the JQOM was
created.
RepositoryException
- if another error occurs
InvalidQueryException
public void bindValue(String varName, Value value) throws IllegalArgumentException, RepositoryException
value
to the variable named
varName
.
bindValue
in interface PreparedQuery
varName
- name of variable in queryvalue
- value to bind
IllegalArgumentException
- if varName
is not a
valid variable in this query.
RepositoryException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |