Package 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
@Deprecated public class ServerQuery extends ServerObject implements RemoteQuery
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
Queryinterface. This class makes a local session available as an RMI service using theRemoteQueryinterface.- See Also:
Query,RemoteQuery, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerQuery(Query query, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given localQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbindValue(String varName, Value value)Deprecated.RemoteQueryResultexecute()Deprecated.String[]getBindVariableNames()Deprecated.StringgetLanguage()Deprecated.StringgetStatement()Deprecated.StringgetStoredQueryPath()Deprecated.voidsetLimit(long limit)Deprecated.voidsetOffset(long offset)Deprecated.RemoteNodestoreAsNode(String absPath)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerQuery
public ServerQuery(Query query, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given localQuery.- Parameters:
query- localQueryfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
execute
public RemoteQueryResult execute() throws RepositoryException, RemoteException
Deprecated.- Specified by:
executein interfaceRemoteQuery- Returns:
- a
QueryResult - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Query.execute()
-
getStatement
public String getStatement() throws RemoteException
Deprecated.- Specified by:
getStatementin interfaceRemoteQuery- Returns:
- the query statement.
- Throws:
RemoteException- on RMI errors- See Also:
Query.getStatement()
-
getLanguage
public String getLanguage() throws RemoteException
Deprecated.- Specified by:
getLanguagein interfaceRemoteQuery- Returns:
- the query language.
- Throws:
RemoteException- on RMI errors- See Also:
Query.getLanguage()
-
getStoredQueryPath
public String getStoredQueryPath() throws RepositoryException, RemoteException
Deprecated.- Specified by:
getStoredQueryPathin interfaceRemoteQuery- Returns:
- path of the node representing this query.
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Query.getStoredQueryPath()
-
storeAsNode
public RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
Deprecated.- Specified by:
storeAsNodein interfaceRemoteQuery- Parameters:
absPath- path at which to persist this query.- Returns:
- stored node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Query.storeAsNode(String)
-
bindValue
public void bindValue(String varName, Value value) throws RepositoryException, RemoteException
Deprecated.- Specified by:
bindValuein interfaceRemoteQuery- Parameters:
varName- name of variable in queryvalue- value to bind- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Query.bindValue(String, Value)
-
getBindVariableNames
public String[] getBindVariableNames() throws RepositoryException, RemoteException
Deprecated.- Specified by:
getBindVariableNamesin interfaceRemoteQuery- Returns:
- the names of the bind variables in this query.
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
Query.getBindVariableNames()
-
setLimit
public void setLimit(long limit) throws RemoteExceptionDeprecated.- Specified by:
setLimitin interfaceRemoteQuery- Parameters:
limit- along- Throws:
RemoteException- on RMI errors- See Also:
Query.setLimit(long)
-
setOffset
public void setOffset(long offset) throws RemoteExceptionDeprecated.- Specified by:
setOffsetin interfaceRemoteQuery- Parameters:
offset- along- Throws:
RemoteException- on RMI errors- See Also:
Query.setOffset(long)
-
-