|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nih.nlm.nls.tc.Db.DbBase
public class DbBase
This class is the database base object. It provides basic operations in DB.
History:
Constructor Summary | |
---|---|
DbBase()
|
Method Summary | |
---|---|
static void |
CloseConnection(java.sql.Connection conn)
Close a specified connection (session) with a database |
static void |
ExecuteDdl(java.lang.String query,
java.sql.Connection conn)
Execute the DB data definiton language query. |
static int |
ExecuteSql(java.lang.String query,
java.sql.Connection conn)
Execute the DB sql query. |
static java.sql.Connection |
OpenConnection(Configuration config)
Open a connection using URL specified in configuration bundle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbBase()
Method Detail |
---|
public static java.sql.Connection OpenConnection(Configuration config)
config
- configuration bundle
public static void CloseConnection(java.sql.Connection conn)
conn
- database connectionpublic static void ExecuteDdl(java.lang.String query, java.sql.Connection conn)
query
- Db queryconn
- Db connectionpublic static int ExecuteSql(java.lang.String query, java.sql.Connection conn)
query
- Db queryconn
- Db connection
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |