|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.TriggerInfo
public final class TriggerInfo
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.
| Field Summary | |
|---|---|
(package private) int[] |
columnIds
|
(package private) java.lang.String[] |
columnNames
|
(package private) TriggerDescriptor[] |
triggerArray
This class implements Formatable. |
| Constructor Summary | |
|---|---|
|
TriggerInfo()
Niladic constructor for Formattable |
|
TriggerInfo(TableDescriptor td,
int[] changedCols,
GenericDescriptorList triggers)
Constructor for TriggerInfo |
private |
TriggerInfo(TriggerDescriptor[] triggers,
int[] changedColsIds,
java.lang.String[] changedColsNames)
|
| Method Summary | |
|---|---|
(package private) TriggerDescriptor[] |
getTriggerArray()
|
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
(package private) boolean |
hasTrigger(boolean isBefore,
boolean isRow)
Do we have a trigger or triggers that meet the criteria |
private boolean |
hasTrigger(java.lang.Boolean isBefore,
java.lang.Boolean isRow)
Do we have a trigger or triggers that meet the criteria |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object out |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
TriggerDescriptor[] triggerArray
java.lang.String[] columnNames
int[] columnIds
| Constructor Detail |
|---|
public TriggerInfo()
public TriggerInfo(TableDescriptor td,
int[] changedCols,
GenericDescriptorList triggers)
td - the table upon which the trigger is declaredchangedCols - the columns that are changed in the dml that is
causing the trigger to firetriggers - the list of trigger descriptors
private TriggerInfo(TriggerDescriptor[] triggers,
int[] changedColsIds,
java.lang.String[] changedColsNames)
| Method Detail |
|---|
boolean hasTrigger(boolean isBefore,
boolean isRow)
isBefore - true for a before trigger, false
for after trigger, null for eitherisRow - true for a row trigger, false
for statement trigger, null for either
private boolean hasTrigger(java.lang.Boolean isBefore,
java.lang.Boolean isRow)
isBefore - true for a before trigger, false
for after trigger, null for eitherisRow - true for a row trigger, false
for statement trigger, null for either
TriggerDescriptor[] getTriggerArray()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here
java.io.IOException - thrown on error
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.Object
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||