SQLFire 1.1

com.vmware.sqlfire.callbacks
Enum Event.Type

java.lang.Object
  extended by java.lang.Enum<Event.Type>
      extended by com.vmware.sqlfire.callbacks.Event.Type
All Implemented Interfaces:
Serializable, Comparable<Event.Type>
Enclosing interface:
Event

public static enum Event.Type
extends Enum<Event.Type>

Enumeration of the types of callback events.


Enum Constant Summary
AFTER_DELETE
          event raised after a delete in a table
AFTER_INSERT
          event raised after an insert into a table
AFTER_UPDATE
          event raised after an update of a table
BEFORE_DELETE
          event raised before a delete in a table
BEFORE_INSERT
          event raised before an insert into a table
BEFORE_UPDATE
          event raised before an update of a table
BULK_DML
          A bulk DML event raised for AsyncEventListener.
BULK_INSERT
          An event raised for AsyncEventListener when a batch or bulk insert is done on a table.
 
Method Summary
 boolean isBulkInsert()
          Return true if this is a BULK_INSERT operation.
 boolean isBulkOperation()
          Return true if this is a bulk operation event (BULK_DML or BULK_INSERT).
static Event.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Event.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEFORE_INSERT

public static final Event.Type BEFORE_INSERT
event raised before an insert into a table


BEFORE_UPDATE

public static final Event.Type BEFORE_UPDATE
event raised before an update of a table


BEFORE_DELETE

public static final Event.Type BEFORE_DELETE
event raised before a delete in a table


AFTER_INSERT

public static final Event.Type AFTER_INSERT
event raised after an insert into a table


AFTER_UPDATE

public static final Event.Type AFTER_UPDATE
event raised after an update of a table


AFTER_DELETE

public static final Event.Type AFTER_DELETE
event raised after a delete in a table


BULK_DML

public static final Event.Type BULK_DML
A bulk DML event raised for AsyncEventListener. Use Event.getDMLString() to retrieve the DML string, Event.getNewRowsAsResultSet() to get any parameters, ResultSet.getMetaData() on the parameters ResultSet to get the metadata for parameters, and Event.getSchemaName() to get the current schema.


BULK_INSERT

public static final Event.Type BULK_INSERT
An event raised for AsyncEventListener when a batch or bulk insert is done on a table. Use Event.getNewRowsAsResultSet() to get an iterator on the rows inserted in the table.

Method Detail

values

public static Event.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Event.Type c : Event.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Event.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isBulkOperation

public boolean isBulkOperation()
Return true if this is a bulk operation event (BULK_DML or BULK_INSERT).


isBulkInsert

public boolean isBulkInsert()
Return true if this is a BULK_INSERT operation.


SQLFire 1.1

Copyright © 2010-2013 VMware, Inc. All rights reserved.