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

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

public class pushDownNestingObject
extends java.lang.Object
implements Operator

pushDownNestingObject.java will move up a nesting relationship along the DTD structure constructor: public pushDownNestingObject(JDBCClient client, String MovedItemName, String ParentItemName, int ParentPosition, int FromPosition, String ChildItemName, int ToPosition, String DTD_URI, int myID) 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
pushDownNestingObject(JDBCClient client, java.lang.String MovedItemName, java.lang.String ParentItemName, int FromPosition, java.lang.String ChildItemName, int ParentPosition, int ToPosition, java.lang.String DTD_URI, int myID)
          This constructor is used with an existing connection and intializes all the instance variables for each argument.
 
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

MovedItemName

java.lang.String MovedItemName

ChildItemName

java.lang.String ChildItemName

ParentItemName

java.lang.String ParentItemName

ParentPosition

int ParentPosition

FromPosition

int FromPosition

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

pushDownNestingObject

public pushDownNestingObject(JDBCClient client,
                             java.lang.String MovedItemName,
                             java.lang.String ParentItemName,
                             int FromPosition,
                             java.lang.String ChildItemName,
                             int ParentPosition,
                             int ToPosition,
                             java.lang.String DTD_URI,
                             int myID)
This constructor is used with an existing connection and intializes all the instance variables for each argument.
Parameters:
client - JDBCClient connection to database
MovedItemName - String the item to be moved
ParentItemName - String parent of the item to be moved
FromPosition - int position of the item within the parent
ChildItemName - String name of the child item the moving item is to go
ParentPosition - int position of the parent item to its siblings
ToPosition - int position to be moved to in the child item
DTD_URI - String URI of the dtd that specifies these items
myID - int The internal ID of the current pushDownNestingObject 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