org.jumpmind.symmetric.model
Enum DataEventType

java.lang.Object
  extended by java.lang.Enum<DataEventType>
      extended by org.jumpmind.symmetric.model.DataEventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DataEventType>, ICoded

public enum DataEventType
extends java.lang.Enum<DataEventType>
implements ICoded


Enum Constant Summary
CONFIG
          An event that indicates that all SymmetricDS configuration table data should be streamed to the client.
CREATE
          An event that indicates that the data payload is a table creation.
DELETE
          Delete DML type.
INSERT
          Insert DML type.
RELOAD
          An event that indicates that a table needs to be reloaded.
SQL
          An event that indicates that the data payload has a sql statement that needs to be executed.
UPDATE
          Update DML type.
VALIDATE
          An event that indicates that table validation needs to be done.
 
Method Summary
 java.lang.String getCode()
           
static DataEventType getEventType(java.lang.String s)
           
static DataEventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataEventType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSERT

public static final DataEventType INSERT
Insert DML type.


UPDATE

public static final DataEventType UPDATE
Update DML type.


DELETE

public static final DataEventType DELETE
Delete DML type.


VALIDATE

public static final DataEventType VALIDATE
An event that indicates that table validation needs to be done.


RELOAD

public static final DataEventType RELOAD
An event that indicates that a table needs to be reloaded.


SQL

public static final DataEventType SQL
An event that indicates that the data payload has a sql statement that needs to be executed. This is more of a remote control feature (that would have been very handy in past lives).


CREATE

public static final DataEventType CREATE
An event that indicates that the data payload is a table creation.


CONFIG

public static final DataEventType CONFIG
An event that indicates that all SymmetricDS configuration table data should be streamed to the client.

Method Detail

values

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

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

valueOf

public static DataEventType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getCode

public java.lang.String getCode()
Specified by:
getCode in interface ICoded

getEventType

public static DataEventType getEventType(java.lang.String s)


Copyright © 2007-2008. All Rights Reserved.