|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.DSRG.xmldb.MetadataDrivenLoader.UniqueID
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 |
|
Field Detail |
JDBCClient client
int last_iid
Constructor Detail |
public UniqueID(JDBCClient jdbc)
public UniqueID(java.lang.String URI, java.lang.String username, java.lang.String passwd)
Method Detail |
public int getNextID()
public void keepLastID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |