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

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

public class renameAttributeObject
extends java.lang.Object
implements Operator

renameAttributeObject.java represents the attribute that is to be renamed constructor: public renameAttributeObject(JDBCClient client, String ParentItemName, String OldAttributeName, String NewAttributeName, String DTD_URI, int myID) member variables: client - used to connect to oracle ParentItemName - the parent name of the item OldAttributeName - the current name of the attribute NewAttributeName - the new name of the 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)  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 NewAttributeName
           
(package private)  java.lang.String OldAttributeName
           
(package private)  java.lang.String oldView
           
(package private)  java.lang.String ParentItemName
           
(package private)  java.sql.ResultSet rs
           
 
Constructor Summary
renameAttributeObject(JDBCClient client, java.lang.String ParentItemName, java.lang.String OldAttributeName, java.lang.String NewAttributeName, 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 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

ParentItemName

java.lang.String ParentItemName

OldAttributeName

java.lang.String OldAttributeName

NewAttributeName

java.lang.String NewAttributeName

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

renameAttributeObject

public renameAttributeObject(JDBCClient client,
                             java.lang.String ParentItemName,
                             java.lang.String OldAttributeName,
                             java.lang.String NewAttributeName,
                             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 database
ParentItemName - String name of the item that owns the attribute to be renamed
OldAttributeName - String existing name for the attribute
NewAttributeName - String new name for the attribute
DTD_URI - String URI for the DTD that defines these items and attributes
myID - int The internal id for this renameAttributeObject 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