uk.ac.kcl.cch.jb.pliny.model
Class DBServices
java.lang.Object
uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
uk.ac.kcl.cch.jb.pliny.model.DBServices
- All Implemented Interfaces:
- IPropertyChangeObject
- public class DBServices
- extends PropertyChangeObject
provides linking services between the DB engine and the
rdb2java
model objects. This version, which
supports an embedded link to the Derby
database can also
set up the tables in the DB when it is first created.
- Author:
- John Bradley
Constructor Summary |
DBServices()
Creates new DBObjectFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
GENERAL
public static final int GENERAL
- See Also:
- Constant Field Values
ACCOUNT
public static final int ACCOUNT
- See Also:
- Constant Field Values
DBServices
public DBServices()
- Creates new DBObjectFactory
getConnection
public static Connection getConnection()
returnConnection
public static void returnConnection(Connection c)
setDBName
public static void setDBName(String dbName)
closeConnection
public static void closeConnection()
getNewKeyQuery
public static String getNewKeyQuery(String tableName)
notifyCreate
public void notifyCreate(String type,
Object object)
notifyDelete
public void notifyDelete(String type,
Object object)