edu.wpi.cs.DSRG.xmldb.operators
Class pushUpAttributeObject
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.operators.pushUpAttributeObject
- All Implemented Interfaces:
- Operator
- public class pushUpAttributeObject
- extends java.lang.Object
- implements Operator
pushUpAttributeObject.java will move attribute b of item B as attribute a of item A
constructor:
public pushUpAttributeObject(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
Constructor Summary |
pushUpAttributeObject(JDBCClient client,
java.lang.String ChildItemName,
java.lang.String ChildAttributeName,
java.lang.String ParentItemName,
java.lang.String ParentAttributeName,
java.lang.String DTD_URI,
int myID)
This constructor is used with an existing connection and initializes all its instance variables to the passed arguments. |
Method Summary |
void |
execute()
The method execute() evaluates the necessary queries to change the DTDMs and create 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 |
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
pushUpAttributeObject
public pushUpAttributeObject(JDBCClient client,
java.lang.String ChildItemName,
java.lang.String ChildAttributeName,
java.lang.String ParentItemName,
java.lang.String ParentAttributeName,
java.lang.String DTD_URI,
int myID)
- This constructor is used with an existing connection and initializes all its instance variables to the passed arguments.
- Parameters:
client
- JDBCClient connection to the databaseChildItemName
- String name of the child that contains the attributeChildAttributeName
- String name of the attribute to be movedParentItemName
- String name of the parent to move attribute intoParentAttributeName
- String name for the attribute once moved to the parentDTD_URI
- String URI for the DTD that defines these items and attributesmyID
- int internal if of this pushUpAttributeObject object
execute
public void execute()
- The method execute() evaluates the necessary queries to change the DTDMs and create new views on the data tables.
- Specified by:
execute
in interface Operator