public void reset() { ((CFAccCursor) this).reset(); try { resultSet.close(); resultSet = stmt.executeQuery(sql); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), "reset", e); } }
public CFAccOracleCursor( CFSecurityAuthorization argAuthorization, CFAccSchema argSchema, String argSql) { super(argAuthorization, argSchema, argSql, 0); try { stmt = ((CFAccOracleSchema) schema) .getCnx() .createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); resultSet = stmt.executeQuery(sql); } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory() .newDbException(getClass(), "CFAccOracleCursor-constructor", e); } }