|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.DBManager
A manager class for the database. Handles opening and closing of connections and simple updates and inserts. This is a singleton.
Method Summary | |
void |
closeConnection()
Closes the db connection |
static int |
executeUpdate(java.lang.String sql)
Executes simple updates or inserts. |
java.sql.Connection |
getConnection()
Use this to get a db connection. |
static DBManager |
getInstance()
Use this one to get an instance of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DBManager getInstance()
public java.sql.Connection getConnection()
public void closeConnection()
public static int executeUpdate(java.lang.String sql)
sql
- - the complete sql statement that is to be executed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |