edu.wpi.cs.DSRG.xmldb.operators
Class pushUpNestingObject
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.operators.pushUpNestingObject
- All Implemented Interfaces:
- Operator
- public class pushUpNestingObject
- extends java.lang.Object
- implements Operator
pushUpNestingObject.java will move up a nesting relationship along the DTD structure
constructor:
public pushUpNestingObject(JDBCClient client, String MovedItemName, String ChildItemName, int FromPosition, String ParentItemName, int ParentPosition, int ToPosition, String DTD_URI)
member variables:
client - used to connect to oracle
MovedItemName - the name of the item to be moved
ChildItemName - the name of the child item
ParentItemName - the name of the parent item
ParentPosition - the parent nesting position
FromPosition - the original nesting position
ToPosition - the final nesting position
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 |
pushUpNestingObject(JDBCClient client,
java.lang.String MovedItemName,
java.lang.String ChildItemName,
int FromPosition,
java.lang.String ParentItemName,
int ParentPosition,
int ToPosition,
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 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
MovedItemName
java.lang.String MovedItemName
ChildItemName
java.lang.String ChildItemName
ParentItemName
java.lang.String ParentItemName
FromPosition
int FromPosition
ParentPosition
int ParentPosition
ToPosition
int ToPosition
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
pushUpNestingObject
public pushUpNestingObject(JDBCClient client,
java.lang.String MovedItemName,
java.lang.String ChildItemName,
int FromPosition,
java.lang.String ParentItemName,
int ParentPosition,
int ToPosition,
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 the databaseMovedItemName
- String name of item to be movedChildItemName
- String name of the item that contains the moving itemFromPosition
- int position of the moving item within its parentParentItemName
- String name of the item that is parent the the item that contains the moving itemParentPosition
- int position of the parent item to its siblingsToPosition
- int position to move the item into within the new parent itemDTD_URI
- String URI of the DTD that defines these itemsmyID
- int The internal id of this pushUpNestingObject 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 on the data tables.
- Specified by:
execute
in interface Operator