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

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

public class pushUpAttributeObject
extends java.lang.Object
implements Operator

pushUpAttributeObject.java will move attribute b of item B as attribute a of item A constructor: public pushUpAttributeObject(JDBCClient client, String ChildItemName, String ChildAttributeName, String ParentItemName, String ParentAttributeName, String DTD_URI, int myID) member variables: client - used to connect to oracle ChildItemName - the name of the child item ChildAttributeName - the name of the child attribute ParentItemName - the name of the parent item ParentAttributeName - the name of the parent attribute 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 ChildAttributeName
           
(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 myID
           
(package private)  java.lang.String oldView
           
(package private)  java.lang.String ParentAttributeName
           
(package private)  java.lang.String ParentItemName
           
(package private)  java.sql.ResultSet rs
           
 
Constructor Summary
pushUpAttributeObject(JDBCClient client, java.lang.String ChildItemName, java.lang.String ChildAttributeName, java.lang.String ParentItemName, java.lang.String ParentAttributeName, java.lang.String DTD_URI, int myID)
          This constructor is used with an existing connection and initializes all its instance variables to the passed arguments.
 
Method Summary
 void execute()
          The method execute() evaluates 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

ChildItemName

java.lang.String ChildItemName

ChildAttributeName

java.lang.String ChildAttributeName

ParentItemName

java.lang.String ParentItemName

ParentAttributeName

java.lang.String ParentAttributeName

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

pushUpAttributeObject

public pushUpAttributeObject(JDBCClient client,
                             java.lang.String ChildItemName,
                             java.lang.String ChildAttributeName,
                             java.lang.String ParentItemName,
                             java.lang.String ParentAttributeName,
                             java.lang.String DTD_URI,
                             int myID)
This constructor is used with an existing connection and initializes all its instance variables to the passed arguments.
Parameters:
client - JDBCClient connection to the database
ChildItemName - String name of the child that contains the attribute
ChildAttributeName - String name of the attribute to be moved
ParentItemName - String name of the parent to move attribute into
ParentAttributeName - String name for the attribute once moved to the parent
DTD_URI - String URI for the DTD that defines these items and attributes
myID - int internal if of this pushUpAttributeObject object
Method Detail

execute

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