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

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

public class pushDownAttributeObject
extends java.lang.Object
implements Operator

pushDownAttributeObject.java will move attribute a of item A to attribute b of item B constructor: public pushDownAttributeObject(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
pushDownAttributeObject(JDBCClient client, java.lang.String ParentItemName, java.lang.String ParentAttributeName, java.lang.String ChildItemName, java.lang.String ChildAttributeName, java.lang.String DTD_URI, int myID)
          This constructor is used with an exisitng connection and initializes the member instances for each argument.
 
Method Summary
 void execute()
          The method execute() evaluates the queries associated with changing the DTDMs and creating 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

pushDownAttributeObject

public pushDownAttributeObject(JDBCClient client,
                               java.lang.String ParentItemName,
                               java.lang.String ParentAttributeName,
                               java.lang.String ChildItemName,
                               java.lang.String ChildAttributeName,
                               java.lang.String DTD_URI,
                               int myID)
This constructor is used with an exisitng connection and initializes the member instances for each argument.
Parameters:
client - JDBCClient connection to database
ParentItemName - String name of the parent item
ParentAttributeName - String name of the attribute of the parent item
ChildItemName - String name of the child item to push attribute into
ChildAttributeName - String new name for the attribute that gets pushed down
Method Detail

execute

public void execute()
             throws java.lang.Exception
The method execute() evaluates the queries associated with changing the DTDMs and creating new views on the data tables.
Specified by:
execute in interface Operator