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