org.apache.jackrabbit.rmi.client
Class ClientQuery

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientQuery
All Implemented Interfaces:
javax.jcr.query.Query

public class ClientQuery
extends ClientObject
implements javax.jcr.query.Query

Local adapter for the JCR-RMI RemoteQuery interface. This class makes a remote query locally available using the JCR Query interface.

See Also:
Query, RemoteQuery

Field Summary
 
Fields inherited from interface javax.jcr.query.Query
JCR_JQOM, JCR_SQL2, SQL, XPATH
 
Constructor Summary
ClientQuery(javax.jcr.Session session, RemoteQuery remote, LocalAdapterFactory factory)
          Creates a client adapter for the given query.
 
Method Summary
 void bindValue(java.lang.String varName, javax.jcr.Value value)
           
 javax.jcr.query.QueryResult execute()
          
 java.lang.String[] getBindVariableNames()
           
 java.lang.String getLanguage()
          
 java.lang.String getStatement()
          
 java.lang.String getStoredQueryPath()
          
 void setLimit(long limit)
           
 void setOffset(long offset)
           
 javax.jcr.Node storeAsNode(java.lang.String absPath)
          
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientQuery

public ClientQuery(javax.jcr.Session session,
                   RemoteQuery remote,
                   LocalAdapterFactory factory)
Creates a client adapter for the given query.

Parameters:
session - current session
remote - remote query
factory - adapter factory
Method Detail

execute

public javax.jcr.query.QueryResult execute()
                                    throws javax.jcr.RepositoryException

Specified by:
execute in interface javax.jcr.query.Query
Throws:
javax.jcr.RepositoryException

getStatement

public java.lang.String getStatement()

Specified by:
getStatement in interface javax.jcr.query.Query

getLanguage

public java.lang.String getLanguage()

Specified by:
getLanguage in interface javax.jcr.query.Query

getStoredQueryPath

public java.lang.String getStoredQueryPath()
                                    throws javax.jcr.RepositoryException

Specified by:
getStoredQueryPath in interface javax.jcr.query.Query
Throws:
javax.jcr.RepositoryException

storeAsNode

public javax.jcr.Node storeAsNode(java.lang.String absPath)
                           throws javax.jcr.RepositoryException

Specified by:
storeAsNode in interface javax.jcr.query.Query
Throws:
javax.jcr.RepositoryException

bindValue

public void bindValue(java.lang.String varName,
                      javax.jcr.Value value)
               throws javax.jcr.RepositoryException
Specified by:
bindValue in interface javax.jcr.query.Query
Throws:
javax.jcr.RepositoryException

getBindVariableNames

public java.lang.String[] getBindVariableNames()
                                        throws javax.jcr.RepositoryException
Specified by:
getBindVariableNames in interface javax.jcr.query.Query
Throws:
javax.jcr.RepositoryException

setLimit

public void setLimit(long limit)
Specified by:
setLimit in interface javax.jcr.query.Query

setOffset

public void setOffset(long offset)
Specified by:
setOffset in interface javax.jcr.query.Query


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