edu.wpi.cs.DSRG.xmldb.operators
Class switchNestingObject

java.lang.Object
  |
  +--edu.wpi.cs.DSRG.xmldb.operators.switchNestingObject
All Implemented Interfaces:
Operator

public class switchNestingObject
extends java.lang.Object
implements Operator

switchNestingObject.java will switch two nesting relationship for same parent constructor: public switchNestingObject(JDBCClient client, String ParentItemName, String ChildItemAName, int PositionA, String ChildItemBName, int PositionB, String DTD_URI, int myID) member variables: client - used to connect to oracle ParentItemName - the current parent name of the item ChildItemAName - the child name of the item a ChildItemBName - the child name of the item b PositionA - the position of the nesting a PositionB - the position of the nesting b DTD_URI - the location of the DTD DTD_ID - the id specifying which DTD to modify myID - the operator's id oldView - the old view rs - the resultset used for processing queries member functions: execute() - executes the queries


Field Summary
(package private)  java.lang.String ChildItemAName
           
(package private)  java.lang.String ChildItemBName
           
(package private)  JDBCClient client
           
(package private)  java.lang.String DTD_ID
           
(package private)  java.lang.String DTD_URI
           
(package private)  int myID
           
(package private)  java.lang.String oldView
           
(package private)  java.lang.String ParentItemName
           
(package private)  int PositionA
           
(package private)  int PositionB
           
(package private)  java.sql.ResultSet rs
           
 
Constructor Summary
switchNestingObject(JDBCClient client, java.lang.String ParentItemName, java.lang.String ChildItemAName, int PositionA, java.lang.String ChildItemBName, int PositionB, java.lang.String DTD_URI, int myID)
          This constructor is used with an existing connection and initializes all the instance variables with the arguments passed.
 
Method Summary
 void execute()
          The method execute() evaluates the statements necessary to change the DTDMs and create views for the data tables.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

client

JDBCClient client

ParentItemName

java.lang.String ParentItemName

ChildItemAName

java.lang.String ChildItemAName

ChildItemBName

java.lang.String ChildItemBName

PositionA

int PositionA

PositionB

int PositionB

DTD_URI

java.lang.String DTD_URI

DTD_ID

java.lang.String DTD_ID

myID

int myID

oldView

java.lang.String oldView

rs

java.sql.ResultSet rs
Constructor Detail

switchNestingObject

public switchNestingObject(JDBCClient client,
                           java.lang.String ParentItemName,
                           java.lang.String ChildItemAName,
                           int PositionA,
                           java.lang.String ChildItemBName,
                           int PositionB,
                           java.lang.String DTD_URI,
                           int myID)
This constructor is used with an existing connection and initializes all the instance variables with the arguments passed.
Parameters:
ParentItemName - String the current parent name
ChildItemAName - String the name of child item a
ChildItemBName - String the naem of child item b
PositionA - int the position of the nesting for item a
PositionB - int the position of the nesting for item b
DTD_URI - String URI for the DTD that defines these items
myID - int The internal id for this switchNestingObject object
Method Detail

execute

public void execute()
             throws java.lang.Exception
The method execute() evaluates the statements necessary to change the DTDMs and create views for the data tables.
Specified by:
execute in interface Operator