org.apache.manifoldcf.crawler.connectors.jdbc
Class JDBCConnection.JDBCResultSet

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.jdbc.JDBCConnection.JDBCResultSet
All Implemented Interfaces:
IDynamicResultSet
Enclosing class:
JDBCConnection

protected class JDBCConnection.JDBCResultSet
extends java.lang.Object
implements IDynamicResultSet


Field Summary
protected  java.sql.Connection connection
           
protected  int maxResults
           
protected  java.lang.String[] resultCols
           
protected  java.sql.ResultSet rs
           
protected  java.sql.ResultSetMetaData rsmd
           
protected  java.sql.Statement stmt
           
 
Fields inherited from interface org.apache.manifoldcf.crawler.connectors.jdbc.IDynamicResultSet
_rcsid
 
Constructor Summary
JDBCConnection.JDBCResultSet(java.lang.String query, int maxResults)
          Constructor
 
Method Summary
 void close()
          Close this resultset.
 org.apache.manifoldcf.core.interfaces.IResultRow getNextRow()
          Get the next row from the resultset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected java.sql.Connection connection

stmt

protected java.sql.Statement stmt

rs

protected java.sql.ResultSet rs

rsmd

protected java.sql.ResultSetMetaData rsmd

resultCols

protected java.lang.String[] resultCols

maxResults

protected int maxResults
Constructor Detail

JDBCConnection.JDBCResultSet

public JDBCConnection.JDBCResultSet(java.lang.String query,
                                    int maxResults)
                             throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                    org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Constructor

Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Method Detail

getNextRow

public org.apache.manifoldcf.core.interfaces.IResultRow getNextRow()
                                                            throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                                                   org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Get the next row from the resultset.

Specified by:
getNextRow in interface IDynamicResultSet
Returns:
the immutable row description, or null if there is no such row.
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption

close

public void close()
           throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                  org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Close this resultset.

Specified by:
close in interface IDynamicResultSet
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption