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.conn.LanguageConnectionContext; 27 28 import org.apache.derby.iapi.sql.dictionary.IndexRowGenerator; 29 import org.apache.derby.iapi.sql.dictionary.TableDescriptor; 30 31 import org.apache.derby.iapi.sql.execute.ExecPreparedStatement; 32 import org.apache.derby.iapi.sql.execute.ExecRow; 33 import org.apache.derby.iapi.sql.execute.ExecutionFactory; 34 import org.apache.derby.iapi.sql.execute.NoPutResultSet; 35 import org.apache.derby.iapi.sql.execute.ConstantAction; 36 import org.apache.derby.iapi.sql.execute.CursorResultSet; 37 import org.apache.derby.iapi.sql.execute.TemporaryRowHolder; 38 39 import org.apache.derby.iapi.store.access.ConglomerateController; 40 import org.apache.derby.iapi.store.access.ScanController; 41 import org.apache.derby.iapi.store.access.TransactionController; 42 43 import org.apache.derby.iapi.types.DataValueFactory; 44 45 import org.apache.derby.iapi.types.RowLocation; 46 import org.apache.derby.iapi.types.DataTypeDescriptor; 47 48 import java.sql.SQLWarning ; 49 import java.util.Enumeration ; 50 import java.util.Vector ; 51 import java.util.Hashtable ; 52 53 54 73 74 public interface Activation 75 { 76 84 void reset() throws StandardException; 85 86 101 void setCursorName(String cursorName); 102 103 110 public boolean checkIfThisActivationHasHoldCursor(String tableName); 111 112 118 ParameterValueSet getParameterValueSet(); 119 120 135 void setParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) throws StandardException; 136 137 145 ResultSet execute() throws StandardException; 146 147 160 void close() throws StandardException; 161 162 167 boolean isClosed(); 168 169 173 void setSingleExecution(); 174 175 179 boolean isSingleExecution(); 180 181 185 SQLWarning getWarnings(); 186 187 190 void addWarning(SQLWarning w); 191 192 195 void clearWarnings(); 196 197 200 public LanguageConnectionContext getLanguageConnectionContext(); 201 202 206 TransactionController getTransactionController(); 207 208 216 ResultSet getResultSet(); 217 218 221 void clearResultSet(); 222 223 238 void setCurrentRow(ExecRow currentRow, int resultSetNumber); 239 240 254 255 void clearCurrentRow(int resultSetNumber); 256 257 263 ExecPreparedStatement getPreparedStatement(); 264 265 270 public void checkStatementValidity() throws StandardException; 271 272 278 ResultDescription getResultDescription(); 279 280 285 DataValueFactory getDataValueFactory(); 286 287 292 ExecutionFactory getExecutionFactory(); 293 294 301 public RowLocation getRowLocationTemplate(int itemNumber); 302 303 307 public int getNumSubqueries(); 308 309 321 public String getCursorName(); 322 323 328 public boolean getResultSetHoldability(); 329 330 335 public void setResultSetHoldability(boolean resultSetHoldability); 336 337 358 public void setAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String [] columnNames); 359 360 366 public boolean getAutoGeneratedKeysResultsetMode(); 367 368 375 public int[] getAutoGeneratedKeysColumnIndexes(); 376 377 384 public String [] getAutoGeneratedKeysColumnNames(); 385 386 389 public void markUnused(); 390 391 396 public boolean isInUse(); 397 398 415 public void informOfRowCount(NoPutResultSet resultSet, long rowCount) 416 throws StandardException; 417 418 425 public ConglomerateController getHeapConglomerateController(); 426 427 433 public void setHeapConglomerateController(ConglomerateController updateHeapCC); 434 435 439 public void clearHeapConglomerateController(); 440 441 448 public ScanController getIndexScanController(); 449 450 457 public void setIndexScanController(ScanController indexSC); 458 459 466 public long getIndexConglomerateNumber(); 467 468 475 public void setIndexConglomerateNumber(long indexConglomerateNumber); 476 477 481 public void clearIndexScanInfo(); 482 483 488 public void setForCreateTable(); 489 490 499 public boolean getForCreateTable(); 500 501 506 public void setDDLTableDescriptor(TableDescriptor td); 507 508 515 public TableDescriptor getDDLTableDescriptor(); 516 517 523 public void setMaxRows(int maxRows); 524 525 531 public int getMaxRows(); 532 533 538 public boolean isCursorActivation(); 539 540 544 public void setTargetVTI(java.sql.ResultSet targetVTI); 545 546 553 public java.sql.ResultSet getTargetVTI(); 554 555 public ConstantAction getConstantAction(); 556 557 public void setParentResultSet(TemporaryRowHolder rs, String resultSetId); 559 560 564 public Vector getParentResultSet(String resultSetId); 565 566 public void clearParentResultSets(); 568 569 public Hashtable getParentResultSets(); 570 571 575 public void setForUpdateIndexScan(CursorResultSet forUpdateResultSet); 576 577 public CursorResultSet getForUpdateIndexScan(); 578 579 586 public java.sql.ResultSet [][] getDynamicResults(); 587 588 593 public int getMaxDynamicResults(); 594 } 595 | Popular Tags |