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

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

public class renameItemObject
extends java.lang.Object
implements Operator

renameItemObject.java represents the attribute that is to be renamed constructor: public renameItemObject(JDBCClient client, String OldItemName, String NewItemName, String DTD_URI, int myID) member variables: client - used to connect to oracle OldItemName - the current name of the item NewItemName - the new name of the item 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)  Catalog catalog
           
(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 NewItemName
           
(package private)  java.lang.String OldItemName
           
(package private)  java.lang.String oldView
           
(package private)  java.sql.ResultSet rs
           
 
Constructor Summary
renameItemObject(JDBCClient client, java.lang.String OldItemName, java.lang.String NewItemName, java.lang.String DTD_URI, int myID)
          This constructor is used with an existing connection and initializes all the instance variables to the arguments passed.
 
Method Summary
 void execute()
          The method execute() evaluates all the necessary queries to change the DTDMs and create new 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

OldItemName

java.lang.String OldItemName

NewItemName

java.lang.String NewItemName

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

catalog

Catalog catalog
Constructor Detail

renameItemObject

public renameItemObject(JDBCClient client,
                        java.lang.String OldItemName,
                        java.lang.String NewItemName,
                        java.lang.String DTD_URI,
                        int myID)
This constructor is used with an existing connection and initializes all the instance variables to the arguments passed.
Parameters:
client - JDBCClient connection to database
OldItemName - String existing name of the item
NewItemName - String new name for the item
DTD_URI - String URI for the DTD that defines this item
myID - int The internal id for this renameItemObject 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 for the data tables.
Specified by:
execute in interface Operator