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 FormConstructor 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, unexportObject
public ServerQuery(Query query, RemoteAdapterFactory factory) throws java.rmi.RemoteException
Query
.query
- local Query
factory
- remote adapter factoryjava.rmi.RemoteException
- on RMI errorspublic RemoteQueryResult execute() throws RepositoryException, java.rmi.RemoteException
execute
in interface RemoteQuery
QueryResult
RepositoryException
- on repository errorsjava.rmi.RemoteException
- on RMI errorsjavax.jcr.query.Query#execute()
public java.lang.String getStatement() throws java.rmi.RemoteException
getStatement
in interface RemoteQuery
java.rmi.RemoteException
- on RMI errorsjavax.jcr.query.Query#getStatement()
public java.lang.String getLanguage() throws java.rmi.RemoteException
getLanguage
in interface RemoteQuery
java.rmi.RemoteException
- on RMI errorsjavax.jcr.query.Query#getLanguage()
public java.lang.String getStoredQueryPath() throws RepositoryException, java.rmi.RemoteException
getStoredQueryPath
in interface RemoteQuery
RepositoryException
- 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 RemoteQuery
absPath
- 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 RemoteQuery
varName
- 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 RemoteQuery
RepositoryException
- on repository errorsjava.rmi.RemoteException
- on RMI errorsjavax.jcr.query.Query#getBindVariableNames()
public void setLimit(long limit) throws java.rmi.RemoteException
setLimit
in interface RemoteQuery
limit
- a long
java.rmi.RemoteException
- on RMI errorsjavax.jcr.query.Query#setLimit(long)
public void setOffset(long offset) throws java.rmi.RemoteException
setOffset
in interface RemoteQuery
offset
- a long
java.rmi.RemoteException
- on RMI errorsjavax.jcr.query.Query#setOffset(long)
"Copyright © 2010 - 2019 Adobe Systems Incorporated. All Rights Reserved"