org.exoplatform.services.jcr.rmi.impl.server
Class ServerQueryManager
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.exoplatform.services.jcr.rmi.impl.server.ServerObject
org.exoplatform.services.jcr.rmi.impl.server.ServerQueryManager
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemoteQueryManager
public class ServerQueryManager
- extends ServerObject
- implements RemoteQueryManager
Remote adapter for the JCR QueryManager interface. This
class makes a local query manager available as an RMI service using the
RemoteQueryManager
interface.
- See Also:
QueryManager,
RemoteQueryManager,
Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ServerQueryManager
public ServerQueryManager(javax.jcr.query.QueryManager manager,
RemoteAdapterFactoryImpl factory,
javax.jcr.Session session)
throws java.rmi.RemoteException
- Creates a remote adapter for the given local query manager.
- Parameters:
manager - local query managerfactory - remote adapter factory
- Throws:
java.rmi.RemoteException - on RMI errors
createQuery
public RemoteQuery createQuery(java.lang.String statement,
java.lang.String language)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
-
- Specified by:
createQuery in interface RemoteQueryManager
- Parameters:
statement - query statementlanguage - query language
- Returns:
- query
- Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors- See Also:
QueryManager.createQuery(java.lang.String, java.lang.String)
getQuery
public RemoteQuery getQuery(java.lang.String absPath)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
-
- Specified by:
getQuery in interface RemoteQueryManager
- Parameters:
absPath - node path of a persisted query (that is, a node of type nt:query).
- Returns:
- a
Query object.
- Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors- See Also:
QueryManager.getQuery(javax.jcr.Node)
getSupportedQueryLanguages
public java.lang.String[] getSupportedQueryLanguages()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
-
- Specified by:
getSupportedQueryLanguages in interface RemoteQueryManager
- Returns:
- An string array.
- Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors- See Also:
See {@link Query}.
Copyright © 2012 eXo Platform SAS. All Rights Reserved.