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
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 |
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
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 databaseOldItemName
- String existing name of the itemNewItemName
- String new name for the itemDTD_URI
- String URI for the DTD that defines this itemmyID
- int The internal id for this renameItemObject object
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