Class TriggerEvent


  • public class TriggerEvent
    extends java.lang.Object
    A 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.
    Author:
    Tobias Downer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DELETE  
      static int INSERT
      Statics that represent the different types of high layer trigger events.
      static int UPDATE  
    • 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
      int getCount()
      Returns the number of times this event was fired.
      java.lang.String getSource()
      Returns the source of this event.
      int getType()
      Returns the type of this event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TriggerEvent

        public TriggerEvent​(int type,
                            java.lang.String source,
                            int count)
        Constructs the trigger event.
      • TriggerEvent

        public TriggerEvent​(int type,
                            java.lang.String source)
    • Method Detail

      • getType

        public int getType()
        Returns the type of this event.
      • getSource

        public java.lang.String getSource()
        Returns the source of this event.
      • getCount

        public int getCount()
        Returns the number of times this event was fired.