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:
- java.io.Serializable, java.rmi.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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ServerQuery
public ServerQuery(javax.jcr.query.Query query,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
- Creates a remote adapter for the given local
Query
.
- Parameters:
query
- local Query
factory
- remote adapter factory
- Throws:
java.rmi.RemoteException
- on RMI errors
execute
public RemoteQueryResult execute()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
-
- Specified by:
execute
in interface RemoteQuery
- Returns:
- a
QueryResult
- Throws:
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errors- See Also:
Query.execute()
getStatement
public java.lang.String getStatement()
throws java.rmi.RemoteException
-
- Specified by:
getStatement
in interface RemoteQuery
- Returns:
- the query statement.
- Throws:
java.rmi.RemoteException
- on RMI errors- See Also:
Query.getStatement()
getLanguage
public java.lang.String getLanguage()
throws java.rmi.RemoteException
-
- Specified by:
getLanguage
in interface RemoteQuery
- Returns:
- the query language.
- Throws:
java.rmi.RemoteException
- on RMI errors- See Also:
Query.getLanguage()
getStoredQueryPath
public java.lang.String getStoredQueryPath()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
-
- Specified by:
getStoredQueryPath
in interface RemoteQuery
- Returns:
- path of the node representing this query.
- Throws:
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errors- See Also:
Query.getStoredQueryPath()
storeAsNode
public RemoteNode storeAsNode(java.lang.String absPath)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
-
- Specified by:
storeAsNode
in interface RemoteQuery
- Parameters:
absPath
- path at which to persist this query.
- Returns:
- stored node
- Throws:
javax.jcr.RepositoryException
- on repository errors
java.rmi.RemoteException
- on RMI errors- See Also:
Query.storeAsNode(String)
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.