Functions | |
| Class. | forName ("org.postgresql.Driver") |
| LoadCDSFromAce () throws SQLException, ClassNotFoundException | |
| void | connect (String h, int p) |
| void | connectAce (String dbname) |
| void | close () throws SQLException |
| void | closeAce () |
| void | updateFrom (String aceQuery, boolean mRNA) throws SQLException, AceException |
| void | loadFrom (String aceQuery, boolean mRNA) throws SQLException, AceException |
| void | createFileFrom (String aceQuery, boolean mRNA) throws SQLException, AceException |
| void | insert () throws SQLException, AceException |
| void | loadOrganism (String div) throws SQLException, AceException |
| int | getOrgid (String orgName) throws SQLException |
| String | getOrgidString (String orgName) throws SQLException |
| Vector | getUnusedId () throws SQLException |
| int | nextID () |
| static void | main (String[] args) |
Variables | |
| psconn = DriverManager.getConnection(pgDB, usr, pgPassword) | |
| stmt = psconn.createStatement() | |
| orgidStmt = psconn.prepareStatement("Select id from species where name=?") | |
| unusedIds = getUnusedId() | |
| void close | ( | ) | throws SQLException |
| void closeAce | ( | ) |
| void connect | ( | String | h, | |
| int | p | |||
| ) |
| void connectAce | ( | String | dbname | ) |
| void createFileFrom | ( | String | aceQuery, | |
| boolean | mRNA | |||
| ) | throws SQLException, AceException |
| Class. forName | ( | "org.postgresql.Driver" | ) | [package] |
| int getOrgid | ( | String | orgName | ) | throws SQLException |
does a database query from species table to obtain the id of species from name, orgName must be scientific
References orgidStmt.
Referenced by loadFrom(), and updateFrom().
| String getOrgidString | ( | String | orgName | ) | throws SQLException |
| Vector getUnusedId | ( | ) | throws SQLException [private] |
used to obtain unused cds_id in the cds table, run at
/** used to obtain unused cds_id in the cds table, run at object construction. Called by the constructor.
Referenced by LoadCDSFromAce().
| void insert | ( | ) | throws SQLException, AceException |
References loadFrom().
| LoadCDSFromAce | ( | ) | throws SQLException, ClassNotFoundException |
| void loadFrom | ( | String | aceQuery, | |
| boolean | mRNA | |||
| ) | throws SQLException, AceException |
use this function when the cds table is originally empty. Or all of the entries are mostly new. When called for both CDS and CDS_from_mRNA, usually the second call fails with large databases such as bony, human, ... I have no solutions yet. The failer is from the backend!!!
References aceid, getOrgid(), nextID(), prtid, and psconn.
Referenced by insert().
| void loadOrganism | ( | String | div | ) | throws SQLException, AceException |
| static void main | ( | String[] | args | ) | [static] |
| int nextID | ( | ) | [private] |
Referenced by createFileFrom(), and loadFrom().
| void updateFrom | ( | String | aceQuery, | |
| boolean | mRNA | |||
| ) | throws SQLException, AceException |
Referenced by close(), getOrgid(), getOrgidString(), and LoadCDSFromAce().
| psconn = DriverManager.getConnection(pgDB, usr, pgPassword) |
Referenced by close(), LoadCDSFromAce(), loadFrom(), loadOrganism(), and updateFrom().
| stmt = psconn.createStatement() |
Referenced by Clusterdump::Clusterdump(), dumpClusterPrt::dumpClusterPrt(), LoadCDSFromAce(), and SimpleSelect::main().
| unusedIds = getUnusedId() |
Referenced by LoadCDSFromAce(), and updateFrom().
1.5.6