org.apache.jackrabbit.rmi.server
Class ServerQuery
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.ServerQuery
- All Implemented Interfaces:
- Serializable, Remote, RemoteQuery
public class ServerQuery
- extends ServerObject
- implements RemoteQuery
Remote adapter for the JCR Query
interface.
This class makes a local session available as an RMI service using the
RemoteQuery
interface.
- See Also:
Query
,
RemoteQuery
,
Serialized Form
ServerQuery
public ServerQuery(Query query,
RemoteAdapterFactory factory)
throws RemoteException
- Creates a remote adapter for the given local
Query
.
- Parameters:
query
- local Query
factory
- remote adapter factory
- Throws:
RemoteException
- on RMI errors
execute
public RemoteQueryResult execute()
throws RepositoryException,
RemoteException
-
- Specified by:
execute
in interface RemoteQuery
- Returns:
- a
QueryResult
- Throws:
RepositoryException
- on repository errors
RemoteException
- on RMI errors- See Also:
Query.execute()
getStatement
public String getStatement()
throws RemoteException
-
- Specified by:
getStatement
in interface RemoteQuery
- Returns:
- the query statement.
- Throws:
RemoteException
- on RMI errors- See Also:
Query.getStatement()
getLanguage
public String getLanguage()
throws RemoteException
-
- Specified by:
getLanguage
in interface RemoteQuery
- Returns:
- the query language.
- Throws:
RemoteException
- on RMI errors- See Also:
Query.getLanguage()
getStoredQueryPath
public String getStoredQueryPath()
throws RepositoryException,
RemoteException
-
- Specified by:
getStoredQueryPath
in interface RemoteQuery
- Returns:
- path of the node representing this query.
- Throws:
RepositoryException
- on repository errors
RemoteException
- on RMI errors- See Also:
Query.getStoredQueryPath()
storeAsNode
public RemoteNode storeAsNode(String absPath)
throws RepositoryException,
RemoteException
-
- Specified by:
storeAsNode
in interface RemoteQuery
- 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-2008 The Apache Software Foundation. All Rights Reserved.