public final class TriggerInfo extends java.lang.Object implements Formatable
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
columnIds |
(package private) java.lang.String[] |
columnNames |
(package private) TriggerDescriptor[] |
triggerArray
This class implements Formatable.
|
Modifier | Constructor and Description |
---|---|
|
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) |
Modifier and Type | Method and Description |
---|---|
(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
|
TriggerDescriptor[] triggerArray
java.lang.String[] columnNames
int[] columnIds
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 descriptorsprivate TriggerInfo(TriggerDescriptor[] triggers, int[] changedColsIds, java.lang.String[] changedColsNames)
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 eitherprivate 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 eitherTriggerDescriptor[] getTriggerArray()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes herejava.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 errorjava.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.