1 21 22 package org.apache.derby.iapi.sql; 23 24 import org.apache.derby.iapi.error.StandardException; 25 26 import org.apache.derby.iapi.sql.execute.ExecRow; 27 import org.apache.derby.iapi.sql.execute.NoPutResultSet; 28 import org.apache.derby.iapi.sql.Row; 29 30 import java.sql.Timestamp ; 31 import java.sql.SQLWarning ; 32 33 56 57 public interface ResultSet 58 { 59 60 public static final int CURRENT_RESULTSET_ONLY = 0; 61 62 public static final int ENTIRE_RESULTSET_TREE = 1; 63 64 public static final int ISBEFOREFIRST = 101; 66 public static final int ISFIRST = 102; 67 public static final int ISLAST = 103; 68 public static final int ISAFTERLAST = 104; 69 70 76 boolean returnsRows(); 77 78 87 int modifiedRowCount(); 88 89 98 ResultDescription getResultDescription(); 99 100 Activation getActivation(); 101 102 110 void open() throws StandardException; 111 112 127 ExecRow getAbsoluteRow(int row) throws StandardException; 128 129 146 ExecRow getRelativeRow(int row) throws StandardException; 147 148 157 ExecRow setBeforeFirstRow() throws StandardException; 158 159 168 ExecRow getFirstRow() throws StandardException; 169 170 179 ExecRow getNextRow() throws StandardException; 180 181 190 ExecRow getPreviousRow() throws StandardException; 191 192 201 ExecRow getLastRow() throws StandardException; 202 203 212 ExecRow setAfterLastRow() throws StandardException; 213 214 224 void clearCurrentRow(); 225 226 233 public boolean checkRowPosition(int isType) throws StandardException; 234 235 245 int getRowNumber(); 246 247 254 void close() throws StandardException; 255 256 261 void cleanUp() throws StandardException; 262 263 269 boolean isClosed(); 270 271 279 void finish() throws StandardException; 280 281 286 public long getExecuteTime(); 287 288 293 public Timestamp getBeginExecutionTimestamp(); 294 295 300 public Timestamp getEndExecutionTimestamp(); 301 302 310 public long getTimeSpent(int type); 311 312 320 public NoPutResultSet[] getSubqueryTrackingArray(int numSubqueries); 321 322 327 public ResultSet getAutoGeneratedKeysResultset(); 328 329 337 public String getCursorName(); 338 339 343 public SQLWarning getWarnings(); 344 } 345 | Popular Tags |