1 21 22 package org.apache.derby.iapi.db; 23 24 import java.sql.ResultSet ; 25 import java.sql.SQLException ; 26 import org.apache.derby.catalog.UUID; 27 28 32 public interface TriggerExecutionContext 33 { 34 38 public static final int UPDATE_EVENT = 1; 39 40 44 public static final int DELETE_EVENT = 2; 45 46 50 public static final int INSERT_EVENT = 3; 51 52 53 59 public String getTargetTableName(); 60 61 67 public UUID getTargetTableId(); 68 69 75 public int getEventType(); 76 77 83 public String getEventStatementText(); 84 85 93 public String [] getModifiedColumns(); 94 95 104 public boolean wasColumnModified(String columnName); 105 106 115 public boolean wasColumnModified(int columnNumber); 116 117 135 public ResultSet getOldRowSet() throws SQLException ; 136 137 155 public ResultSet getNewRowSet() throws SQLException ; 156 157 173 public ResultSet getOldRow() throws SQLException ; 174 175 191 public ResultSet getNewRow() throws SQLException ; 192 } 193 | Popular Tags |