Remote adapter for the JCR QueryManager
interface. This class makes a local query manager available as an RMI
service using the
RemoteQueryManager
interface.
@Deprecated public class ServerQueryManager extends ServerObject implements RemoteQueryManager
QueryManager
,
RemoteQueryManager
,
Serialized Formref
Constructor and Description |
---|
ServerQueryManager(Session session,
QueryManager manager,
ServerAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local query manager.
|
Modifier and Type | Method and Description |
---|---|
RemoteQuery |
createQuery(String statement,
String language)
Deprecated.
|
RemoteQuery |
getQuery(String absPath)
Deprecated.
|
String[] |
getSupportedQueryLanguages()
Deprecated.
See
Query . |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerQueryManager(Session session, QueryManager manager, ServerAdapterFactory factory) throws RemoteException
session
- current sessionmanager
- local query managerfactory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteQuery createQuery(String statement, String language) throws RepositoryException, RemoteException
createQuery
in interface RemoteQueryManager
statement
- query statementlanguage
- query languageRepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryManager.createQuery(java.lang.String, java.lang.String)
public RemoteQuery getQuery(String absPath) throws RepositoryException, RemoteException
getQuery
in interface RemoteQueryManager
absPath
- node path of a persisted query (that is, a node of type nt:query
).Query
object.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryManager.getQuery(javax.jcr.Node)
public String[] getSupportedQueryLanguages() throws RepositoryException, RemoteException
Query
.getSupportedQueryLanguages
in interface RemoteQueryManager
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryManager.getSupportedQueryLanguages()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.