edu.wpi.cs.DSRG.xmldb.operators
Class pushDownNestingObject
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.operators.pushDownNestingObject
- All Implemented Interfaces:
- Operator
- public class pushDownNestingObject
- extends java.lang.Object
- implements Operator
pushDownNestingObject.java will move up a nesting relationship along the DTD structure
constructor:
public pushDownNestingObject(JDBCClient client, String MovedItemName, String ParentItemName, int ParentPosition, int FromPosition, String ChildItemName, int ToPosition, String DTD_URI, int myID)
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 |
pushDownNestingObject(JDBCClient client,
java.lang.String MovedItemName,
java.lang.String ParentItemName,
int FromPosition,
java.lang.String ChildItemName,
int ParentPosition,
int ToPosition,
java.lang.String DTD_URI,
int myID)
This constructor is used with an existing connection and intializes all the instance variables for each argument. |
Method Summary |
void |
execute()
The method execute() evaluates the statements necessary to change the DTDMs and create 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
MovedItemName
java.lang.String MovedItemName
ChildItemName
java.lang.String ChildItemName
ParentItemName
java.lang.String ParentItemName
ParentPosition
int ParentPosition
FromPosition
int FromPosition
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
pushDownNestingObject
public pushDownNestingObject(JDBCClient client,
java.lang.String MovedItemName,
java.lang.String ParentItemName,
int FromPosition,
java.lang.String ChildItemName,
int ParentPosition,
int ToPosition,
java.lang.String DTD_URI,
int myID)
- This constructor is used with an existing connection and intializes all the instance variables for each argument.
- Parameters:
client
- JDBCClient connection to databaseMovedItemName
- String the item to be movedParentItemName
- String parent of the item to be movedFromPosition
- int position of the item within the parentChildItemName
- String name of the child item the moving item is to goParentPosition
- int position of the parent item to its siblingsToPosition
- int position to be moved to in the child itemDTD_URI
- String URI of the dtd that specifies these itemsmyID
- int The internal ID of the current pushDownNestingObject object
execute
public void execute()
throws java.lang.Exception
- The method execute() evaluates the statements necessary to change the DTDMs and create views for the data tables.
- Specified by:
execute
in interface Operator