1 21 22 package org.apache.derby.impl.tools.ij; 23 24 import java.sql.Connection ; 25 import java.sql.ResultSet ; 26 import java.sql.Statement ; 27 import java.sql.SQLException ; 28 import java.sql.SQLWarning ; 29 import java.util.Vector ; 30 31 38 class ijMultiResult extends ijResultImpl { 39 40 private Statement statement; 41 private ResultSet rs; 42 boolean closeWhenDone; 43 44 ijMultiResult(Statement s, ResultSet rs, boolean c) { 45 statement = s; 46 this.rs = rs; 47 closeWhenDone = c; 48 } 49 50 public boolean isMulti() { return true; } 51 52 public Statement getStatement() { return statement; } 53 public ResultSet getResultSet() { return rs; } 54 public void closeStatement() throws SQLException { if (closeWhenDone) statement.close(); } 55 56 public SQLWarning getSQLWarnings() { return null; } 57 public void clearSQLWarnings() { } 58 } 59 | Popular Tags |