|
||||||||||
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
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 | |
int[] |
columnIds
|
java.lang.String[] |
columnNames
|
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 |
public TriggerDescriptor[] triggerArray
public java.lang.String[] columnNames
public int[] columnIds
Constructor Detail |
public TriggerInfo()
public TriggerInfo(TableDescriptor td, int[] changedCols, GenericDescriptorList triggers) throws StandardException
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
StandardException
- on errorprivate 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.Externalizable
out
- write bytes here
java.io.IOException
- thrown on errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |