Documentation of 'org.hsqldb.test.TriggerClass' Java class
TriggerClass
org.hsqldb.test

Class TriggerClass

  • All Implemented Interfaces:
    Trigger


    public class TriggerClass
    extends java.lang.Object
    implements Trigger
    • Constructor Detail

      • TriggerClass

        public TriggerClass()
    • Method Detail

      • fire

        public void fire(int type,
                         java.lang.String trigName,
                         java.lang.String tabName,
                         java.lang.Object[] oldRow,
                         java.lang.Object[] newRow)
        Description copied from interface: Trigger
        The method invoked upon each triggered action.

        type contains the integer index id for trigger type, e.g. TriggerDef.INSERT_AFTER

        For all triggers defined as default FOR EACH STATEMENT both oldRow and newRow are null.

        For triggers defined as FOR EACH ROW, the following will apply:

        When UPDATE triggers are fired, oldRow contains the existing values of the table row and newRow contains the new values.

        For INSERT triggers, oldRow is null and newRow contains the table row to be inserted. For DELETE triggers, newRow is null and oldRow contains the table row to be deleted.

        For error conditions, users can construct an HsqlException using one of the static methods of org.hsqldb.error.Error with a predefined SQL State from org.hsqldb.error.ErrorCode.

        Specified by:
        fire in interface Trigger
        Parameters:
        type - the type as one of the int values defined in the interface
        trigName - the name of the trigger
        tabName - the name of the table upon which the triggered action is occuring
        oldRow - the old row
        newRow - the new row
      • authenticateFalse

        public static java.sql.Array authenticateFalse(java.lang.String database,
                                                       java.lang.String user,
                                                       java.lang.String password)
      • authenticate

        public static java.sql.Array authenticate(java.lang.String database,
                                                  java.lang.String user,
                                                  java.lang.String password)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.