SPIResultSet(SPIStatement statement, Portal portal, int maxRows) throws SQLException { super(statement.getFetchSize()); m_statement = statement; m_portal = portal; m_maxRows = maxRows; m_tupleDesc = portal.getTupleDesc(); m_tableRow = -1; }
public void close() throws SQLException { if (m_portal.isValid()) { m_portal.close(); m_statement.resultSetClosed(this); m_table = null; m_tableRow = -1; m_currentRow = null; m_nextRow = null; super.close(); } }