org.apache.jackrabbit.rmi.remote
Interface RemoteQuery

All Superinterfaces:
Remote
All Known Implementing Classes:
ServerQuery

public interface RemoteQuery
extends Remote

Remote version of the JCR Query interface. Used by the ServerQuery and ClientQuery adapter base classes to provide transparent RMI access to remote items.

RMI errors are signaled with RemoteExceptions.

See Also:
Query, ClientQuery, ServerQuery

Method Summary
 RemoteQueryResult execute()
           
 String getLanguage()
           
 String getStatement()
           
 String getStoredQueryPath()
           
 RemoteNode storeAsNode(String absPath)
           
 

Method Detail

execute

RemoteQueryResult execute()
                          throws RepositoryException,
                                 RemoteException
Returns:
a QueryResult
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors
See Also:
Query.execute()

getStatement

String getStatement()
                    throws RemoteException
Returns:
the query statement.
Throws:
RemoteException - on RMI errors
See Also:
Query.getStatement()

getLanguage

String getLanguage()
                   throws RemoteException
Returns:
the query language.
Throws:
RemoteException - on RMI errors
See Also:
Query.getLanguage()

getStoredQueryPath

String getStoredQueryPath()
                          throws RepositoryException,
                                 RemoteException
Returns:
path of the node representing this query.
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors
See Also:
Query.getStoredQueryPath()

storeAsNode

RemoteNode storeAsNode(String absPath)
                       throws RepositoryException,
                              RemoteException
Parameters:
absPath - path at which to persist this query.
Returns:
stored node
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors
See Also:
Query.storeAsNode(String)


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