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

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

public class pushUpNestingObject
extends java.lang.Object
implements Operator

pushUpNestingObject.java will move up a nesting relationship along the DTD structure constructor: public pushUpNestingObject(JDBCClient client, String MovedItemName, String ChildItemName, int FromPosition, String ParentItemName, int ParentPosition, int ToPosition, String DTD_URI) member variables: client - used to connect to oracle MovedItemName - the name of the item to be moved ChildItemName - the name of the child item ParentItemName - the name of the parent item ParentPosition - the parent nesting position FromPosition - the original nesting position ToPosition - the final nesting position 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 ChildItemName
           
(package private)  JDBCClient client
           
(package private)  java.lang.String DTD_ID
           
(package private)  java.lang.String DTD_URI
           
(package private)  int FromPosition
           
(package private)  java.lang.String MovedItemName
           
(package private)  int myID
           
(package private)  java.lang.String oldView
           
(package private)  java.lang.String ParentItemName
           
(package private)  int ParentPosition
           
(package private)  java.sql.ResultSet rs
           
(package private)  int ToPosition
           
 
Constructor Summary
pushUpNestingObject(JDBCClient client, java.lang.String MovedItemName, java.lang.String ChildItemName, int FromPosition, java.lang.String ParentItemName, int ParentPosition, int ToPosition, java.lang.String DTD_URI, int myID)
          This constructor is used with an existing connection and initializes the instance variables with the arguments passed.
 
Method Summary
 void execute()
          The method execute() evaluates all the necessary queries to change the DTDMs and create new views on 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

MovedItemName

java.lang.String MovedItemName

ChildItemName

java.lang.String ChildItemName

ParentItemName

java.lang.String ParentItemName

FromPosition

int FromPosition

ParentPosition

int ParentPosition

ToPosition

int ToPosition

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

pushUpNestingObject

public pushUpNestingObject(JDBCClient client,
                           java.lang.String MovedItemName,
                           java.lang.String ChildItemName,
                           int FromPosition,
                           java.lang.String ParentItemName,
                           int ParentPosition,
                           int ToPosition,
                           java.lang.String DTD_URI,
                           int myID)
This constructor is used with an existing connection and initializes the instance variables with the arguments passed.
Parameters:
client - JDBCClient connection to the database
MovedItemName - String name of item to be moved
ChildItemName - String name of the item that contains the moving item
FromPosition - int position of the moving item within its parent
ParentItemName - String name of the item that is parent the the item that contains the moving item
ParentPosition - int position of the parent item to its siblings
ToPosition - int position to move the item into within the new parent item
DTD_URI - String URI of the DTD that defines these items
myID - int The internal id of this pushUpNestingObject object
Method Detail

execute

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