org.apache.jackrabbit.rmi.client
Class ClientQuery

java.lang.Object
  extended byorg.apache.jackrabbit.rmi.client.ClientObject
      extended byorg.apache.jackrabbit.rmi.client.ClientQuery
All Implemented Interfaces:
Query

public class ClientQuery
extends ClientObject
implements Query

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

Author:
Philipp Koch
See Also:
Query, RemoteQuery

Field Summary
 
Fields inherited from interface javax.jcr.query.Query
SQL, XPATH
 
Constructor Summary
ClientQuery(Session session, RemoteQuery remote, LocalAdapterFactory factory)
          Creates a client adapter for the given query.
 
Method Summary
 QueryResult execute()
          
 String getLanguage()
          
 String getStatement()
          
 String getStoredQueryPath()
          
 Node storeAsNode(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(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 QueryResult execute()
                    throws RepositoryException

Specified by:
execute in interface Query
Throws:
RepositoryException

getStatement

public String getStatement()

Specified by:
getStatement in interface Query

getLanguage

public String getLanguage()

Specified by:
getLanguage in interface Query

getStoredQueryPath

public String getStoredQueryPath()
                          throws RepositoryException

Specified by:
getStoredQueryPath in interface Query
Throws:
RepositoryException

storeAsNode

public Node storeAsNode(String absPath)
                 throws RepositoryException

Specified by:
storeAsNode in interface Query
Throws:
RepositoryException


Copyright © 2004-2006 . All Rights Reserved.