xmlBlaster 2.2.0 API

org.xmlBlaster.contrib.dbwatcher
Class ChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.xmlBlaster.contrib.dbwatcher.ChangeEvent
All Implemented Interfaces:
java.io.Serializable

public final class ChangeEvent
extends java.util.EventObject

Transports the change event information to the listeners.

Author:
Marcel Ruff
See Also:
Serialized Form

Field Summary
private  java.util.Map attrMap
           
private  java.lang.String groupColName
           
private  java.lang.String groupColValue
           
private static long serialVersionUID
           
private  java.lang.String xml
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChangeEvent(java.lang.Object source)
           
ChangeEvent(java.lang.String groupColName, java.lang.String groupColValue, java.lang.String xml, java.lang.String command, java.util.Map map)
          Create the instance.
 
Method Summary
 java.util.Map getAttributeMap()
          Access properties.
 java.lang.String getCommand()
          The command token which caused the event.
 java.lang.String getGroupColName()
          The DB columns name.
 java.lang.String getGroupColValue()
          The current DB column name's value.
 java.lang.String getXml()
          The data to transfer.
 void setCommand(java.lang.String command)
           
 void setXml(java.lang.String xml)
          Sets the data to transfer.
 java.lang.String toString()
          For informative logging.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

groupColName

private java.lang.String groupColName

groupColValue

private java.lang.String groupColValue

xml

private java.lang.String xml

attrMap

private java.util.Map attrMap
Constructor Detail

ChangeEvent

public ChangeEvent(java.lang.Object source)
Parameters:
source - Transported data

ChangeEvent

public ChangeEvent(java.lang.String groupColName,
                   java.lang.String groupColValue,
                   java.lang.String xml,
                   java.lang.String command,
                   java.util.Map map)
Create the instance.

Parameters:
groupColName - for example 'ICAO_ID'
groupColValue - for example 'EDDI'
xml - The result xml from a query
command - The command which probably caused the event, like INSERT
Method Detail

setCommand

public void setCommand(java.lang.String command)

getGroupColName

public java.lang.String getGroupColName()
The DB columns name. Each change of the value triggers a new event

Returns:
Returns the groupColName.

getGroupColValue

public java.lang.String getGroupColValue()
The current DB column name's value. Each change of this triggers a new event

Returns:
Never null, defautls to ${}

getCommand

public java.lang.String getCommand()
The command token which caused the event.

For example CREATE or UPDATE

Returns:
Returns the command.

getAttributeMap

public java.util.Map getAttributeMap()
Access properties.

Returns:
Map with attributes, is never null

getXml

public java.lang.String getXml()
The data to transfer.

Returns:
Returns the xml result.

setXml

public void setXml(java.lang.String xml)
Sets the data to transfer.

Parameters:
xml -

toString

public java.lang.String toString()
For informative logging.

Overrides:
toString in class java.util.EventObject
Returns:
dump

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.