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, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerQuery(javax.jcr.query.Query query, RemoteAdapterFactory factory) throws RemoteException
Query
.query
- local Query
factory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteQueryResult execute() throws javax.jcr.RepositoryException, RemoteException
execute
in interface RemoteQuery
QueryResult
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.execute()
public String getStatement() throws RemoteException
getStatement
in interface RemoteQuery
RemoteException
- on RMI errorsQuery.getStatement()
public String getLanguage() throws RemoteException
getLanguage
in interface RemoteQuery
RemoteException
- on RMI errorsQuery.getLanguage()
public String getStoredQueryPath() throws javax.jcr.RepositoryException, RemoteException
getStoredQueryPath
in interface RemoteQuery
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getStoredQueryPath()
public RemoteNode storeAsNode(String absPath) throws javax.jcr.RepositoryException, RemoteException
storeAsNode
in interface RemoteQuery
absPath
- 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 RemoteQuery
varName
- 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 RemoteQuery
javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getBindVariableNames()
public void setLimit(long limit) throws RemoteException
setLimit
in interface RemoteQuery
limit
- a long
RemoteException
- on RMI errorsQuery.setLimit(long)
public void setOffset(long offset) throws RemoteException
setOffset
in interface RemoteQuery
offset
- a long
RemoteException
- on RMI errorsQuery.setOffset(long)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.