Package com.mckoi.database
Class TriggerEvent
- java.lang.Object
-
- com.mckoi.database.TriggerEvent
-
public class TriggerEvent extends java.lang.ObjectA trigger event represents a high level action that occured in the database. A trigger event is generated by the SQL interpreter on evaluation of curtain types of queries.
-
-
Field Summary
Fields Modifier and Type Field Description private intcountThe number of times this event was fired.static intDELETEstatic intINSERTStatics that represent the different types of high layer trigger events.private java.lang.StringsourceThe source of the trigger (eg.private inttypeThe type of this event.static intUPDATE
-
Constructor Summary
Constructors Constructor Description TriggerEvent(int type, java.lang.String source)TriggerEvent(int type, java.lang.String source, int count)Constructs the trigger event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Returns the number of times this event was fired.java.lang.StringgetSource()Returns the source of this event.intgetType()Returns the type of this event.
-
-
-
Field Detail
-
INSERT
public static final int INSERT
Statics that represent the different types of high layer trigger events.- See Also:
- Constant Field Values
-
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
-
UPDATE
public static final int UPDATE
- See Also:
- Constant Field Values
-
type
private int type
The type of this event.
-
source
private java.lang.String source
The source of the trigger (eg. the table name).
-
count
private int count
The number of times this event was fired.
-
-