public class ServerQuery extends ServerObject implements RemoteQuery
Query interface.
This class makes a local session available as an RMI service using the
RemoteQuery
interface.Query,
RemoteQuery,
Serialized Formref| Constructor and Description |
|---|
ServerQuery(javax.jcr.query.Query query,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local
Query. |
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(String varName,
javax.jcr.Value value) |
RemoteQueryResult |
execute() |
String[] |
getBindVariableNames() |
String |
getLanguage() |
String |
getStatement() |
String |
getStoredQueryPath() |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
RemoteNode |
storeAsNode(String absPath) |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValuesclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic ServerQuery(javax.jcr.query.Query query,
RemoteAdapterFactory factory)
throws RemoteException
Query.query - local Queryfactory - remote adapter factoryRemoteException - on RMI errorspublic RemoteQueryResult execute() throws javax.jcr.RepositoryException, RemoteException
execute in interface RemoteQueryQueryResultjavax.jcr.RepositoryException - 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 javax.jcr.RepositoryException, RemoteException
getStoredQueryPath in interface RemoteQueryjavax.jcr.RepositoryException - on repository errorsRemoteException - on RMI errorsQuery.getStoredQueryPath()public RemoteNode storeAsNode(String absPath) throws javax.jcr.RepositoryException, RemoteException
storeAsNode in interface RemoteQueryabsPath - path at which to persist this query.javax.jcr.RepositoryException - on repository errorsRemoteException - on RMI errorsQuery.storeAsNode(String)public void bindValue(String varName, javax.jcr.Value value) throws javax.jcr.RepositoryException, RemoteException
bindValue in interface RemoteQueryvarName - name of variable in queryvalue - value to bindjavax.jcr.RepositoryException - on repository errorsRemoteException - on RMI errorsQuery.bindValue(String, Value)public String[] getBindVariableNames() throws javax.jcr.RepositoryException, RemoteException
getBindVariableNames in interface RemoteQueryjavax.jcr.RepositoryException - 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-2020 The Apache Software Foundation. All Rights Reserved.