|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdbpackage.NlpDb
| Field Summary |
| Fields inherited from interface naturalpackage.Pos |
ADJ, adjexceptions, ADV, ALL_S, ART, ARTS, CONJ, CONJS, DET, DETS, HOW, MEASUREMENT, NOUN, NP, NUM_S, NUMBER, PP, PREP, PREPS, PRON, PRONS, UNKNOWN, VERB, VP, WHAT, WHEN, WHERE, WHO, WHY |
| Constructor Summary | |
NlpDb()
|
|
| Method Summary | |
boolean |
checkForTableName(java.sql.Connection con,
java.lang.String tablename)
This method checks to see if the table already exists in the database |
boolean |
checkForTree(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname)
This method checks to see if a tree already exists in the db |
boolean |
createTable(java.sql.Connection con,
java.lang.String tablename)
This method creates a table in whatever DB you specify |
java.util.Vector |
grabTheTree(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname)
This method grabs the tree from the database |
boolean |
insertVerbAndVector(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname,
java.util.Vector tree)
This method inserts verb & vector (Which is how tree is represented in db |
boolean |
storeVerb(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname)
This method stores something in the column |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NlpDb()
| Method Detail |
public boolean createTable(java.sql.Connection con,
java.lang.String tablename)
con - This is the connection you want to usetablename - This is the name of the table you want to create
public boolean checkForTableName(java.sql.Connection con,
java.lang.String tablename)
con - This is the connection you want to usetablename - This is the name of the table you want to create
public boolean checkForTree(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname)
con - This is the connection you want to usetablename - This is the name of the table you want to create
public boolean insertVerbAndVector(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname,
java.util.Vector tree)
con - This is the connection you want to usetablename - This is the name of the table you want to createcolname - this is the column name where you want it inserted
public java.util.Vector grabTheTree(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname)
con - This is the connection you want to usetablename - This is the name of the table you want to create
public boolean storeVerb(java.sql.Connection con,
java.lang.String tablename,
java.lang.String colname)
con - This is the connection you want to usetablename - This is the name of the table you want to create
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||