Remote adapter for the JCR Query interface.
This class makes a local session available as an RMI service using the
RemoteQuery
interface.
@Deprecated public class ServerQuery extends ServerObject implements RemoteQuery
Query,
RemoteQuery,
Serialized Formref| Constructor and Description |
|---|
ServerQuery(Query query,
RemoteAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local
Query. |
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(String varName,
Value value)
Deprecated.
|
RemoteQueryResult |
execute()
Deprecated.
|
String[] |
getBindVariableNames()
Deprecated.
|
String |
getLanguage()
Deprecated.
|
String |
getStatement()
Deprecated.
|
String |
getStoredQueryPath()
Deprecated.
|
void |
setLimit(long limit)
Deprecated.
|
void |
setOffset(long offset)
Deprecated.
|
RemoteNode |
storeAsNode(String absPath)
Deprecated.
|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValuesclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic ServerQuery(Query query, RemoteAdapterFactory factory) throws RemoteException
Query.query - local Queryfactory - remote adapter factoryRemoteException - on RMI errorspublic RemoteQueryResult execute() throws RepositoryException, RemoteException
execute in interface RemoteQueryQueryResultRepositoryException - on repository errorsRemoteException - on RMI errorsQuery.execute()public String getStatement() throws RemoteException
getStatement in interface RemoteQueryRemoteException - on RMI errorsQuery.getStatement()public String getLanguage() throws RemoteException
getLanguage in interface RemoteQueryRemoteException - on RMI errorsQuery.getLanguage()public String getStoredQueryPath() throws RepositoryException, RemoteException
getStoredQueryPath in interface RemoteQueryRepositoryException - on repository errorsRemoteException - on RMI errorsQuery.getStoredQueryPath()public RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
storeAsNode in interface RemoteQueryabsPath - path at which to persist this query.RepositoryException - on repository errorsRemoteException - on RMI errorsQuery.storeAsNode(String)public void bindValue(String varName, Value value) throws RepositoryException, RemoteException
bindValue in interface RemoteQueryvarName - name of variable in queryvalue - value to bindRepositoryException - on repository errorsRemoteException - on RMI errorsQuery.bindValue(String, Value)public String[] getBindVariableNames() throws RepositoryException, RemoteException
getBindVariableNames in interface RemoteQueryRepositoryException - on repository errorsRemoteException - on RMI errorsQuery.getBindVariableNames()public void setLimit(long limit)
throws RemoteException
setLimit in interface RemoteQuerylimit - a longRemoteException - on RMI errorsQuery.setLimit(long)public void setOffset(long offset)
throws RemoteException
setOffset in interface RemoteQueryoffset - a longRemoteException - on RMI errorsQuery.setOffset(long)Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.