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, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerQuery(Query query, RemoteAdapterFactory factory) throws RemoteException
Query
.query
- local Query
factory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteQueryResult execute() throws RepositoryException, RemoteException
execute
in interface RemoteQuery
QueryResult
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 RepositoryException, RemoteException
getStoredQueryPath
in interface RemoteQuery
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getStoredQueryPath()
public RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
storeAsNode
in interface RemoteQuery
absPath
- 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 RemoteQuery
varName
- 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 RemoteQuery
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–2024 The Apache Software Foundation. All rights reserved.