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