edu.wpi.cs.DSRG.xmldb.MetadataDrivenLoader
Class UniqueID

java.lang.Object
  |
  +--edu.wpi.cs.DSRG.xmldb.MetadataDrivenLoader.UniqueID

public class UniqueID
extends java.lang.Object

This class is responsible to generate an unique ID for all the tuples I am going to created during the loading. Including the metadata tuples and data tuples. There is one table over there, and we assume the URI, username and password are fixed.


Field Summary
(package private)  JDBCClient client
           
(package private)  int last_iid
           
 
Constructor Summary
UniqueID(JDBCClient jdbc)
           
UniqueID(java.lang.String URI, java.lang.String username, java.lang.String passwd)
           
 
Method Summary
 int getNextID()
          This function is used to generate one unique ID for all the tuples.
 void keepLastID()
          keep the last iid back to the database.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

client

JDBCClient client

last_iid

int last_iid
Constructor Detail

UniqueID

public UniqueID(JDBCClient jdbc)

UniqueID

public UniqueID(java.lang.String URI,
                java.lang.String username,
                java.lang.String passwd)
Method Detail

getNextID

public int getNextID()
This function is used to generate one unique ID for all the tuples.

keepLastID

public void keepLastID()
keep the last iid back to the database.