public final boolean getMoreResults(int current) throws SQLException { switch (current) { case CLOSE_ALL_RESULTS: // currently there exists only one ResultSet case CLOSE_CURRENT_RESULT: ResultSet rs = cmd.getResultSet(); cmd.rs = null; if (rs != null) rs.close(); break; case KEEP_CURRENT_RESULT: break; default: throw SmallSQLException.create(Language.FLAGVALUE_INVALID, String.valueOf(current)); } return cmd.getMoreResults(); }
public final boolean execute(String sql) throws SQLException { executeImpl(sql); return cmd.getResultSet() != null; }
public final ResultSet getResultSet() throws SQLException { checkStatement(); return cmd.getResultSet(); }