org.apache.derby.impl.sql.execute
Class DropTriggerConstantAction

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericConstantAction
      extended byorg.apache.derby.impl.sql.execute.DDLConstantAction
          extended byorg.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
              extended byorg.apache.derby.impl.sql.execute.DropTriggerConstantAction
All Implemented Interfaces:
ConstantAction

class DropTriggerConstantAction
extends DDLSingleTableConstantAction

This class describes actions that are ALWAYS performed for a DROP TRIGGER Statement at Execution time.

Author:
Jamie

Field Summary
private  SchemaDescriptor sd
           
protected  UUID tableId
           
private  java.lang.String triggerName
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) DropTriggerConstantAction(SchemaDescriptor sd, java.lang.String triggerName, UUID tableId)
          Make the ConstantAction for a DROP TRIGGER statement.
 
Method Summary
(package private) static void dropTriggerDescriptor(LanguageConnectionContext lcc, DependencyManager dm, DataDictionary dd, TransactionController tc, TriggerDescriptor triggerd, Activation activation)
           
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for DROP STATEMENT.
 boolean modifiesTableId(UUID tableId)
          Does this constant action modify the passed in table uuid?
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, readExternal, upToDate, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

triggerName

private final java.lang.String triggerName

sd

private final SchemaDescriptor sd

tableId

protected UUID tableId
Constructor Detail

DropTriggerConstantAction

DropTriggerConstantAction(SchemaDescriptor sd,
                          java.lang.String triggerName,
                          UUID tableId)
Make the ConstantAction for a DROP TRIGGER statement.

Parameters:
sd - Schema that stored prepared statement lives in.
triggerName - Name of the Trigger
tableId - The table upon which the trigger is defined
Method Detail

executeConstantAction

public void executeConstantAction(Activation activation)
                           throws StandardException
This is the guts of the Execution-time logic for DROP STATEMENT.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure
See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)

dropTriggerDescriptor

static void dropTriggerDescriptor(LanguageConnectionContext lcc,
                                  DependencyManager dm,
                                  DataDictionary dd,
                                  TransactionController tc,
                                  TriggerDescriptor triggerd,
                                  Activation activation)
                           throws StandardException
Throws:
StandardException

toString

public java.lang.String toString()

modifiesTableId

public boolean modifiesTableId(UUID tableId)
Does this constant action modify the passed in table uuid? By modify we mean add or drop things tied to this table (e.g. index, trigger, constraint). Things like views or spses that reference this table don't count.

Specified by:
modifiesTableId in interface ConstantAction
Overrides:
modifiesTableId in class DDLConstantAction
Parameters:
tableId - the table id

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.