public class DBUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
Connection |
con |
ResultSet |
rs |
Statement |
stmt |
| Constructor and Description |
|---|
DBUtils() |
DBUtils(String defaultName,
String protocol) |
DBUtils(String defaultName,
String protocol,
String properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkTable(String tableName)
Check if a table already exists
|
void |
closeDB() |
void |
dropTable(String tablename) |
void |
execUpdate(String sql) |
Connection |
getConnection()
Unused
|
void |
openDB() |
void |
openDB(String dbName) |
void |
shutdownDB() |
public Connection con
public ResultSet rs
public Statement stmt
public void openDB()
public void openDB(String dbName)
public Connection getConnection()
sql - public void dropTable(String tablename)
public void execUpdate(String sql)
public boolean checkTable(String tableName)
tableName - public void closeDB()
public void shutdownDB()
Copyright © 2016 JULIE Lab, Germany. All rights reserved.