Class DMServer
public class DMServer
A work in process.
This class is responsible for managing connecting to the database,
and providing other utility-like functionality.
note: |
The driver should be externalized into config file one day... |
Constructor Summary |
DMServer()Constructor to set up the database.
|
Field Detail
keyTable
systemConnection
Connection systemConnection = null
userConnection
Connection userConnection = null
Constructor Detail
DMServer
public DMServer()
throws SQLException
Constructor to set up the database.
Change the driver name and database name here.
note: |
Need to load driver and DB name from property file. |
Method Detail
getUserConnection
public Connection getUserConnection()
getNextKey
public int getNextKey(String columnName)
throws SQLException