org.apache.jackrabbit.rmi.client
Class ClientQuery
java.lang.Object
org.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientQuery
- All Implemented Interfaces:
- Query
public class ClientQuery
- extends ClientObject
- implements Query
Local adapter for the JCR-RMI
RemoteQuery
interface. This class makes a remote query locally available using
the JCR Query
interface.
- See Also:
Query
,
RemoteQuery
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientQuery
public ClientQuery(Session session,
RemoteQuery remote,
LocalAdapterFactory factory)
- Creates a client adapter for the given query.
- Parameters:
session
- current sessionremote
- remote queryfactory
- adapter factory
execute
public QueryResult execute()
throws RepositoryException
-
- Specified by:
execute
in interface Query
- Throws:
RepositoryException
getStatement
public String getStatement()
-
- Specified by:
getStatement
in interface Query
getLanguage
public String getLanguage()
-
- Specified by:
getLanguage
in interface Query
getStoredQueryPath
public String getStoredQueryPath()
throws RepositoryException
-
- Specified by:
getStoredQueryPath
in interface Query
- Throws:
RepositoryException
storeAsNode
public Node storeAsNode(String absPath)
throws RepositoryException
-
- Specified by:
storeAsNode
in interface Query
- Throws:
RepositoryException
bindValue
public void bindValue(String varName,
Value value)
throws RepositoryException
- Specified by:
bindValue
in interface Query
- Throws:
RepositoryException
getBindVariableNames
public String[] getBindVariableNames()
throws RepositoryException
- Specified by:
getBindVariableNames
in interface Query
- Throws:
RepositoryException
setLimit
public void setLimit(long limit)
- Specified by:
setLimit
in interface Query
setOffset
public void setOffset(long offset)
- Specified by:
setOffset
in interface Query
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.