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 30 38 public class ijRowResult extends ijResultImpl { 39 40 ResultSet rowResult; 41 boolean hadRow; 42 43 public ijRowResult(ResultSet r, boolean hadRow) { 44 rowResult = r; 45 this.hadRow = hadRow; 46 } 47 48 public boolean isNextRowOfResultSet() { return true; } 49 50 public ResultSet getNextRowOfResultSet() { return hadRow?rowResult:null; } 51 52 public SQLWarning getSQLWarnings() throws SQLException { return rowResult.getWarnings(); } 53 public void clearSQLWarnings() throws SQLException { rowResult.clearWarnings(); } 54 } 55 | Popular Tags |