| java.lang.Object org.apache.derby.impl.sql.execute.TriggerInfo
TriggerInfo | final public class TriggerInfo implements Formatable(Code) | | This is a simple class used to store the run time information
about a foreign key. Used by DML to figure out what to
check.
author: jamie |
columnIds | int[] columnIds(Code) | | |
triggerArray | TriggerDescriptor[] triggerArray(Code) | | This class implements Formatable. That means that it
can write itself to and from a formatted stream. If
you add more fields to this class, make sure that you
also write/read them with the writeExternal()/readExternal()
methods.
If, inbetween releases, you add more fields to this class,
then you should bump the version number emitted by the getTypeFormatId()
method. OR, since this is something that is used
in stored prepared statements, it is ok to change it
if you make sure that stored prepared statements are
invalidated across releases.
|
TriggerInfo | public TriggerInfo()(Code) | | Niladic constructor for Formattable
|
TriggerInfo | public TriggerInfo(TableDescriptor td, int[] changedCols, GenericDescriptorList triggers)(Code) | | Constructor for TriggerInfo
Parameters: td - the table upon which the trigger is declared Parameters: changedCols - the columns that are changed in the dml that iscausing the trigger to fire Parameters: triggers - the list of trigger descriptors |
getTypeFormatId | public int getTypeFormatId()(Code) | | Get the formatID which corresponds to this class.
the formatID of this class |
hasTrigger | boolean hasTrigger(boolean isBefore, boolean isRow)(Code) | | Do we have a trigger or triggers that meet
the criteria
Parameters: isBefore - true for a before trigger, falsefor after trigger, null for either Parameters: isRow - true for a row trigger, falsefor statement trigger, null for either true if we have a trigger that meets thecriteria |
|
|