1 21 22 package org.apache.derby.impl.sql.execute; 23 24 import org.apache.derby.iapi.sql.execute.CursorResultSet; 25 import org.apache.derby.iapi.sql.dictionary.TriggerDescriptor; 26 import org.apache.derby.iapi.error.StandardException; 27 import org.apache.derby.iapi.sql.conn.LanguageConnectionContext; 28 29 import org.apache.derby.iapi.sql.Activation; 30 31 36 public class StatementTriggerExecutor extends GenericTriggerExecutor 37 { 38 46 StatementTriggerExecutor 47 ( 48 InternalTriggerExecutionContext tec, 49 TriggerDescriptor triggerd, 50 Activation activation, 51 LanguageConnectionContext lcc 52 ) 53 { 54 super(tec, triggerd, activation, lcc); 55 } 56 57 67 void fireTrigger 68 ( 69 TriggerEvent event, 70 CursorResultSet brs, 71 CursorResultSet ars 72 ) throws StandardException 73 { 74 tec.setTrigger(triggerd); 75 tec.setBeforeResultSet(brs); 76 tec.setAfterResultSet(ars); 77 78 try 79 { 80 executeSPS(getAction()); 81 } 82 finally 83 { 84 clearSPS(); 85 tec.clearTrigger(); 86 } 87 } 88 } 89 | Popular Tags |