Package org.apache.manifoldcf.jdbc
Class JDBCConnection.JDBCPSResultSet
- java.lang.Object
-
- org.apache.manifoldcf.jdbc.JDBCConnection.JDBCPSResultSet
-
- All Implemented Interfaces:
IDynamicResultSet
- Enclosing class:
- JDBCConnection
protected class JDBCConnection.JDBCPSResultSet extends java.lang.Object implements IDynamicResultSet
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.manifoldcf.core.jdbcpool.WrappedConnectionconnectionprotected intmaxResultsprotected java.util.ArrayListparamsprotected java.sql.PreparedStatementpsprotected java.lang.String[]resultColsprotected java.sql.ResultSetrsprotected java.sql.ResultSetMetaDatarsmd-
Fields inherited from interface org.apache.manifoldcf.jdbc.IDynamicResultSet
_rcsid
-
-
Constructor Summary
Constructors Constructor Description JDBCPSResultSet(java.lang.String query, java.util.ArrayList params, int maxResults)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this resultset.IDynamicResultRowgetNextRow()Get the next row from the resultset.
-
-
-
Field Detail
-
connection
protected org.apache.manifoldcf.core.jdbcpool.WrappedConnection connection
-
ps
protected java.sql.PreparedStatement ps
-
rs
protected java.sql.ResultSet rs
-
rsmd
protected java.sql.ResultSetMetaData rsmd
-
resultCols
protected java.lang.String[] resultCols
-
maxResults
protected int maxResults
-
params
protected java.util.ArrayList params
-
-
Constructor Detail
-
JDBCPSResultSet
public JDBCPSResultSet(java.lang.String query, java.util.ArrayList params, int maxResults) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionConstructor- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-
Method Detail
-
getNextRow
public IDynamicResultRow getNextRow() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Get the next row from the resultset.- Specified by:
getNextRowin interfaceIDynamicResultSet- Returns:
- the immutable row description, or null if there is no such row.
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
close
public void close() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionClose this resultset.- Specified by:
closein interfaceIDynamicResultSet- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-