public class ServerQuery extends ServerObject implements RemoteQuery
Query interface.
This class makes a local session available as an RMI service using the
RemoteQuery
interface.javax.jcr.query.Query,
RemoteQuery,
Serialized Form| Constructor and Description |
|---|
ServerQuery(Query query,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local
Query. |
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(java.lang.String varName,
Value value) |
RemoteQueryResult |
execute() |
java.lang.String[] |
getBindVariableNames() |
java.lang.String |
getLanguage() |
java.lang.String |
getStatement() |
java.lang.String |
getStoredQueryPath() |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
RemoteNode |
storeAsNode(java.lang.String absPath) |
clone, exportObject, exportObject, exportObject, unexportObjectpublic ServerQuery(Query query,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
Query.query - local Queryfactory - remote adapter factoryjava.rmi.RemoteException - on RMI errorspublic RemoteQueryResult execute() throws RepositoryException, java.rmi.RemoteException
execute in interface RemoteQueryQueryResultRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#execute()public java.lang.String getStatement()
throws java.rmi.RemoteException
getStatement in interface RemoteQueryjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#getStatement()public java.lang.String getLanguage()
throws java.rmi.RemoteException
getLanguage in interface RemoteQueryjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#getLanguage()public java.lang.String getStoredQueryPath()
throws RepositoryException,
java.rmi.RemoteException
getStoredQueryPath in interface RemoteQueryRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#getStoredQueryPath()public RemoteNode storeAsNode(java.lang.String absPath) throws RepositoryException, java.rmi.RemoteException
storeAsNode in interface RemoteQueryabsPath - path at which to persist this query.RepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#storeAsNode(String)public void bindValue(java.lang.String varName,
Value value)
throws RepositoryException,
java.rmi.RemoteException
bindValue in interface RemoteQueryvarName - name of variable in queryvalue - value to bindRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#bindValue(String, Value)public java.lang.String[] getBindVariableNames()
throws RepositoryException,
java.rmi.RemoteException
getBindVariableNames in interface RemoteQueryRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#getBindVariableNames()public void setLimit(long limit)
throws java.rmi.RemoteException
setLimit in interface RemoteQuerylimit - a longjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#setLimit()public void setOffset(long offset)
throws java.rmi.RemoteException
setOffset in interface RemoteQueryoffset - a longjava.rmi.RemoteException - on RMI errorsjavax.jcr.query.Query#setOffset()"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"