uk.ac.kcl.cch.rdb2java.dynData
Class BaseObject
java.lang.Object
uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
uk.ac.kcl.cch.rdb2java.dynData.BaseObject
- All Implemented Interfaces:
- IPropertyChangeObject
- Direct Known Subclasses:
- BaseNodeObject, Favourite, GlobalData, Link, LinkableObject, LOType, ObjectType, Plugin, Resource
- public abstract class BaseObject
- extends PropertyChangeObject
Method Summary |
protected void |
doSQL(String sql)
|
abstract int |
getALID()
|
protected abstract String |
getKeyName()
|
protected abstract Connection |
getMyConnection()
|
int |
getSavedID()
|
protected abstract String |
getTableName()
|
protected String |
makeWhere()
|
protected abstract void |
returnMyConnection(Connection con)
|
protected void |
updateDBboolean(String attr,
boolean newValue)
|
protected void |
updateDBboolean(String attr,
String tableName,
boolean newValue)
|
protected void |
updateDBint(String attr,
int newValue)
|
protected void |
updateDBint(String attr,
String tableName,
int newValue)
|
protected void |
updateDBString(String attr,
String newValue)
|
protected void |
updateDBString(String attr,
String tableName,
String newValue)
|
protected void |
updateDBTimestamp(String attr,
String tableName,
Timestamp newValue)
|
protected void |
updateDBTimestamp(String attr,
Timestamp newValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseObject
public BaseObject()
getMyConnection
protected abstract Connection getMyConnection()
returnMyConnection
protected abstract void returnMyConnection(Connection con)
getKeyName
protected abstract String getKeyName()
getTableName
protected abstract String getTableName()
makeWhere
protected String makeWhere()
updateDBint
protected void updateDBint(String attr,
String tableName,
int newValue)
updateDBint
protected void updateDBint(String attr,
int newValue)
updateDBboolean
protected void updateDBboolean(String attr,
String tableName,
boolean newValue)
updateDBboolean
protected void updateDBboolean(String attr,
boolean newValue)
updateDBString
protected void updateDBString(String attr,
String tableName,
String newValue)
updateDBString
protected void updateDBString(String attr,
String newValue)
updateDBTimestamp
protected void updateDBTimestamp(String attr,
String tableName,
Timestamp newValue)
updateDBTimestamp
protected void updateDBTimestamp(String attr,
Timestamp newValue)
doSQL
protected void doSQL(String sql)
getALID
public abstract int getALID()
getSavedID
public int getSavedID()