dke.smwp.serialize
Class TupleModificationDescr

java.lang.Object
  |
  +--dke.smwp.serialize.TupleModificationDescr

public class TupleModificationDescr
extends java.lang.Object

Describes tuple modification used to process modification to xml documents

Version:
1.0
Author:
Werner Enser, Martin Bernauer

Field Summary
private  int kindOfMod
          type of modification whose valid values are TUPLE_INSERT, TUPLE_UPDATE, TUPLE_DELETE
private  QName parentElt
          parent element of modified tuple
private static QName rowIdQName
           
private  java.lang.String rowIdValue
          rowid of modified tuple - used to identify tuple
static int TUPLE_DELETE
           
static int TUPLE_INSERT
           
static int TUPLE_UPDATE
           
private  QName tupleElt
          element name of modified tuple
private  java.util.Hashtable xmlTuple
          tuple which was modified; saved as Hashtable containing column names (as key) and column values (as value)
 
Constructor Summary
TupleModificationDescr(QName parentElt, QName tupleElt, java.lang.String rowIdValue, java.util.Hashtable xmlTuple, int kindOfMod)
          constructor
 
Method Summary
 int getKindOfModification()
          gets kind of modification
 QName getParentElt()
          gets name parent element
 QName getRowIdQName()
          gets qualified name for rowid element
 java.lang.String getRowIdValue()
          gets rowid value, which qualifies exactly one tuple
 QName getTupleElt()
          gets name of tuple element
 java.util.Hashtable getXMLTuple()
          gets affected tuple
 java.lang.String toString()
          gets String representation of tuple modificationm description
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

parentElt

private QName parentElt
parent element of modified tuple

tupleElt

private QName tupleElt
element name of modified tuple

xmlTuple

private java.util.Hashtable xmlTuple
tuple which was modified; saved as Hashtable containing column names (as key) and column values (as value)

rowIdValue

private java.lang.String rowIdValue
rowid of modified tuple - used to identify tuple

kindOfMod

private int kindOfMod
type of modification whose valid values are TUPLE_INSERT, TUPLE_UPDATE, TUPLE_DELETE

rowIdQName

private static final QName rowIdQName

TUPLE_INSERT

public static final int TUPLE_INSERT

TUPLE_UPDATE

public static final int TUPLE_UPDATE

TUPLE_DELETE

public static final int TUPLE_DELETE
Constructor Detail

TupleModificationDescr

public TupleModificationDescr(QName parentElt,
                              QName tupleElt,
                              java.lang.String rowIdValue,
                              java.util.Hashtable xmlTuple,
                              int kindOfMod)
constructor
Parameters:
parentElt - qualified name of xml parent element
tupleElt - qualified name of xml tuple
rowIdValue - rowid of tuple which was inserted/updated/deleted
xmlTuple - Hashtable containing tuple columnNames and its values, using column names as key
kindOfMod - determines kind of modification; either TUPLE_INSERT, TUPLE_UPDATE, TUPLE_DELETE
Throws:
java.lang.IllegalArgumentException - invalid value for kindOfMod
Method Detail

getTupleElt

public QName getTupleElt()
gets name of tuple element
Returns:
qualified name of tuple element

getParentElt

public QName getParentElt()
gets name parent element
Returns:
qualified name of parent element

getRowIdValue

public java.lang.String getRowIdValue()
gets rowid value, which qualifies exactly one tuple
Returns:
rowid rowid value

getRowIdQName

public QName getRowIdQName()
gets qualified name for rowid element
Returns:
qualified name for rowid element

getXMLTuple

public java.util.Hashtable getXMLTuple()
gets affected tuple
Returns:
The affected tuple as java.util.Hashtable, keys are of class dke.xml.QName, values of class java.lang.String.

getKindOfModification

public int getKindOfModification()
gets kind of modification
Returns:
kind of modification

toString

public java.lang.String toString()
gets String representation of tuple modificationm description
Overrides:
toString in class java.lang.Object
Returns:
String representation