edu.wpi.cs.DSRG.xmldb.operators
Class pushDownAttributeObject
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.operators.pushDownAttributeObject
- All Implemented Interfaces:
- Operator
- public class pushDownAttributeObject
- extends java.lang.Object
- implements Operator
pushDownAttributeObject.java will move attribute a of item A to attribute b of item B
constructor:
public pushDownAttributeObject(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 |
pushDownAttributeObject(JDBCClient client,
java.lang.String ParentItemName,
java.lang.String ParentAttributeName,
java.lang.String ChildItemName,
java.lang.String ChildAttributeName,
java.lang.String DTD_URI,
int myID)
This constructor is used with an exisitng connection and initializes the member instances for each argument. |
Method Summary |
void |
execute()
The method execute() evaluates the queries associated with changing the DTDMs and creating 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
pushDownAttributeObject
public pushDownAttributeObject(JDBCClient client,
java.lang.String ParentItemName,
java.lang.String ParentAttributeName,
java.lang.String ChildItemName,
java.lang.String ChildAttributeName,
java.lang.String DTD_URI,
int myID)
- This constructor is used with an exisitng connection and initializes the member instances for each argument.
- Parameters:
client
- JDBCClient connection to databaseParentItemName
- String name of the parent itemParentAttributeName
- String name of the attribute of the parent itemChildItemName
- String name of the child item to push attribute intoChildAttributeName
- String new name for the attribute that gets pushed down
execute
public void execute()
throws java.lang.Exception
- The method execute() evaluates the queries associated with changing the DTDMs and creating new views on the data tables.
- Specified by:
execute
in interface Operator