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
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 |
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
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 databaseParentItemName
- String name of the item that owns the attribute to be renamedOldAttributeName
- String existing name for the attributeNewAttributeName
- String new name for the attributeDTD_URI
- String URI for the DTD that defines these items and attributesmyID
- int The internal id for this renameAttributeObject 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