edu.wpi.cs.DSRG.xmldb.operators
Class switchNestingObject
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.operators.switchNestingObject
- All Implemented Interfaces:
- Operator
- public class switchNestingObject
- extends java.lang.Object
- implements Operator
switchNestingObject.java will switch two nesting relationship for same parent
constructor:
public switchNestingObject(JDBCClient client, String ParentItemName, String ChildItemAName, int PositionA, String ChildItemBName, int PositionB, String DTD_URI, int myID)
member variables:
client - used to connect to oracle
ParentItemName - the current parent name of the item
ChildItemAName - the child name of the item a
ChildItemBName - the child name of the item b
PositionA - the position of the nesting a
PositionB - the position of the nesting b
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 |
switchNestingObject(JDBCClient client,
java.lang.String ParentItemName,
java.lang.String ChildItemAName,
int PositionA,
java.lang.String ChildItemBName,
int PositionB,
java.lang.String DTD_URI,
int myID)
This constructor is used with an existing connection and initializes all the instance variables with the arguments passed. |
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
ParentItemName
java.lang.String ParentItemName
ChildItemAName
java.lang.String ChildItemAName
ChildItemBName
java.lang.String ChildItemBName
PositionA
int PositionA
PositionB
int PositionB
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
switchNestingObject
public switchNestingObject(JDBCClient client,
java.lang.String ParentItemName,
java.lang.String ChildItemAName,
int PositionA,
java.lang.String ChildItemBName,
int PositionB,
java.lang.String DTD_URI,
int myID)
- This constructor is used with an existing connection and initializes all the instance variables with the arguments passed.
- Parameters:
ParentItemName
- String the current parent nameChildItemAName
- String the name of child item aChildItemBName
- String the naem of child item bPositionA
- int the position of the nesting for item aPositionB
- int the position of the nesting for item bDTD_URI
- String URI for the DTD that defines these itemsmyID
- int The internal id for this switchNestingObject 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