Package org.apache.jackrabbit.rmi.server
Class ServerQuery
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerQuery
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteQuery
@Deprecated(forRemoval=true) public class ServerQuery extends ServerObject implements RemoteQuery
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
Query
interface. This class makes a local session available as an RMI service using theRemoteQuery
interface.- See Also:
Query
,RemoteQuery
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerQuery(Query query, RemoteAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given localQuery
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
bindValue(String varName, Value value)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteQueryResult
execute()
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getBindVariableNames()
Deprecated, for removal: This API element is subject to removal in a future version.String
getLanguage()
Deprecated, for removal: This API element is subject to removal in a future version.String
getStatement()
Deprecated, for removal: This API element is subject to removal in a future version.String
getStoredQueryPath()
Deprecated, for removal: This API element is subject to removal in a future version.void
setLimit(long limit)
Deprecated, for removal: This API element is subject to removal in a future version.void
setOffset(long offset)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteNode
storeAsNode(String absPath)
Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerQuery
public ServerQuery(Query query, RemoteAdapterFactory factory) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given localQuery
.- Parameters:
query
- localQuery
factory
- remote adapter factory- Throws:
RemoteException
- on RMI errors
-
-
Method Detail
-
execute
public RemoteQueryResult execute() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
execute
in interfaceRemoteQuery
- Returns:
- a
QueryResult
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
Query.execute()
-
getStatement
public String getStatement() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStatement
in interfaceRemoteQuery
- Returns:
- the query statement.
- Throws:
RemoteException
- on RMI errors- See Also:
Query.getStatement()
-
getLanguage
public String getLanguage() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLanguage
in interfaceRemoteQuery
- Returns:
- the query language.
- Throws:
RemoteException
- on RMI errors- See Also:
Query.getLanguage()
-
getStoredQueryPath
public String getStoredQueryPath() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStoredQueryPath
in interfaceRemoteQuery
- Returns:
- path of the node representing this query.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
Query.getStoredQueryPath()
-
storeAsNode
public RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
storeAsNode
in interfaceRemoteQuery
- Parameters:
absPath
- path at which to persist this query.- Returns:
- stored node
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
Query.storeAsNode(String)
-
bindValue
public void bindValue(String varName, Value value) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
bindValue
in interfaceRemoteQuery
- Parameters:
varName
- name of variable in queryvalue
- value to bind- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
Query.bindValue(String, Value)
-
getBindVariableNames
public String[] getBindVariableNames() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getBindVariableNames
in interfaceRemoteQuery
- Returns:
- the names of the bind variables in this query.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
Query.getBindVariableNames()
-
setLimit
public void setLimit(long limit) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setLimit
in interfaceRemoteQuery
- Parameters:
limit
- along
- Throws:
RemoteException
- on RMI errors- See Also:
Query.setLimit(long)
-
setOffset
public void setOffset(long offset) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setOffset
in interfaceRemoteQuery
- Parameters:
offset
- along
- Throws:
RemoteException
- on RMI errors- See Also:
Query.setOffset(long)
-
-