org.apache.jackrabbit.rmi.client
Class ClientQueryResult

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientQueryResult
All Implemented Interfaces:
QueryResult

public class ClientQueryResult
extends ClientObject
implements QueryResult

Local adapter for the JCR-RMI RemoteQueryResult inteface. This class makes a remote query result locally available using the JCR QueryResult interface.

Author:
Philipp Koch
See Also:
QueryResult, RemoteQueryResult

Constructor Summary
ClientQueryResult(Session session, RemoteQueryResult remote, LocalAdapterFactory factory)
          Creates a client adapter for the given remote query result.
 
Method Summary
 String[] getColumnNames()
          
 NodeIterator getNodes()
          
 RowIterator getRows()
          
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientQueryResult

public ClientQueryResult(Session session,
                         RemoteQueryResult remote,
                         LocalAdapterFactory factory)
Creates a client adapter for the given remote query result.

Parameters:
session - current session
remote - remote query result
factory - adapter factory
Method Detail

getColumnNames

public String[] getColumnNames()
                        throws RepositoryException

Specified by:
getColumnNames in interface QueryResult
Throws:
RepositoryException

getRows

public RowIterator getRows()
                    throws RepositoryException

Specified by:
getRows in interface QueryResult
Throws:
RepositoryException

getNodes

public NodeIterator getNodes()
                      throws RepositoryException

Specified by:
getNodes in interface QueryResult
Throws:
RepositoryException


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.