uk.ac.kcl.cch.rdb2java.dynData
Class BaseObject

java.lang.Object
  extended byuk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
      extended byuk.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


Nested Class Summary
 class BaseObject.ListItemData
           
 
Constructor Summary
BaseObject()
           
 
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 uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseObject

public BaseObject()
Method Detail

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()