uk.ac.kcl.cch.jb.pliny.model
Class ObjectType

java.lang.Object
  extended byuk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
      extended byuk.ac.kcl.cch.rdb2java.dynData.BaseObject
          extended byuk.ac.kcl.cch.jb.pliny.model.ObjectType
All Implemented Interfaces:
IAuthorityListItem, ILoadableFromResultSet, INamedObject, IPropertyChangeObject, IResourceExtensionProcessorSource

public class ObjectType
extends BaseObject
implements IAuthorityListItem, ILoadableFromResultSet, INamedObject, IResourceExtensionProcessorSource


Nested Class Summary
 
Nested classes inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject
BaseObject.ListItemData
 
Field Summary
static String EDITORID_PROP
           
static String ICONID_PROP
           
static String IDSTRING_PROP
           
protected static ObjectTypeQuery myCache
           
static String NAME_PROP
           
protected  int objectTypeKey
           
static String PLUGINKEY_PROP
           
static String RESOURCES_PROP
           
 
Constructor Summary
ObjectType()
           
ObjectType(boolean realEmpty)
           
 
Method Summary
 void assignMyReferencesTo(int to)
           
 void assignMyReferencesTo(ObjectType assignee)
           
 void deleteMe()
           
protected  void doInsert()
           
static ObjectType findFromEditorId(String editorId)
           
static ObjectType findFromIds(String pluginID, String editorId)
           
 int getALID()
           
 String getALItem()
           
 IResourceExtensionProcessor getDropTargetProcessor()
          Pliny will call this method when it needs access to the appropriate IResourceExtensionProcessor
 String getEditorId()
           
 String getIconId()
           
 org.eclipse.swt.graphics.Image getIconImage()
           
 String getIdString()
           
static ObjectType getItem(int key)
           
protected  String getKeyName()
           
protected  Connection getMyConnection()
           
 String getName()
           
 int getObjectTypeKey()
           
 Plugin getPlugin()
           
 FKReferenceList getResources()
           
static String getSelectEntities()
           
static String getSQLFrom()
           
static String getTableJoins()
           
protected  String getTableName()
           
 int loadFromResultSet(ResultSet rs)
           
 void reIntroduceMe()
           
protected  void returnMyConnection(Connection con)
           
 void setDropTargetProcessor(IResourceExtensionProcessor module)
          The Resource Explorer will use this method to store the assocation between this object and the IResourceExtensionProcessor.
 void setEditorId(String parm)
           
protected  void setEmpty()
           
 void setIconId(String parm)
           
 void setIdString(String parm)
           
 void setName(String parm)
           
 void setPlugin(Plugin item)
           
 void signalChangeResources(Resource oldItem, Resource newItem)
           
 String toString()
           
 
Methods inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject
doSQL, getSavedID, makeWhere, updateDBboolean, updateDBboolean, updateDBint, updateDBint, updateDBString, updateDBString, updateDBTimestamp, updateDBTimestamp
 
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, wait, wait, wait
 

Field Detail

myCache

protected static ObjectTypeQuery myCache

objectTypeKey

protected int objectTypeKey

NAME_PROP

public static final String NAME_PROP
See Also:
Constant Field Values

PLUGINKEY_PROP

public static final String PLUGINKEY_PROP
See Also:
Constant Field Values

IDSTRING_PROP

public static final String IDSTRING_PROP
See Also:
Constant Field Values

EDITORID_PROP

public static final String EDITORID_PROP
See Also:
Constant Field Values

ICONID_PROP

public static final String ICONID_PROP
See Also:
Constant Field Values

RESOURCES_PROP

public static final String RESOURCES_PROP
See Also:
Constant Field Values
Constructor Detail

ObjectType

public ObjectType(boolean realEmpty)

ObjectType

public ObjectType()
Method Detail

setEmpty

protected void setEmpty()

getSelectEntities

public static String getSelectEntities()

getTableJoins

public static String getTableJoins()

getSQLFrom

public static String getSQLFrom()

getKeyName

protected String getKeyName()
Specified by:
getKeyName in class BaseObject

getTableName

protected String getTableName()
Specified by:
getTableName in class BaseObject

getMyConnection

protected Connection getMyConnection()
Specified by:
getMyConnection in class BaseObject

returnMyConnection

protected void returnMyConnection(Connection con)
Specified by:
returnMyConnection in class BaseObject

loadFromResultSet

public int loadFromResultSet(ResultSet rs)
                      throws SQLException
Specified by:
loadFromResultSet in interface ILoadableFromResultSet
Throws:
SQLException

getItem

public static ObjectType getItem(int key)

getObjectTypeKey

public int getObjectTypeKey()

getName

public String getName()
Specified by:
getName in interface INamedObject

getPlugin

public Plugin getPlugin()

getIdString

public String getIdString()

getEditorId

public String getEditorId()

getIconId

public String getIconId()

setName

public void setName(String parm)
Specified by:
setName in interface INamedObject

setPlugin

public void setPlugin(Plugin item)

setIdString

public void setIdString(String parm)

setEditorId

public void setEditorId(String parm)

setIconId

public void setIconId(String parm)

doInsert

protected void doInsert()

deleteMe

public void deleteMe()

reIntroduceMe

public void reIntroduceMe()

getResources

public FKReferenceList getResources()

signalChangeResources

public void signalChangeResources(Resource oldItem,
                                  Resource newItem)

assignMyReferencesTo

public void assignMyReferencesTo(int to)

assignMyReferencesTo

public void assignMyReferencesTo(ObjectType assignee)

getDropTargetProcessor

public IResourceExtensionProcessor getDropTargetProcessor()
Description copied from interface: IResourceExtensionProcessorSource
Pliny will call this method when it needs access to the appropriate IResourceExtensionProcessor

Specified by:
getDropTargetProcessor in interface IResourceExtensionProcessorSource
Returns:
IResourceExtensionProcessor for this item.

setDropTargetProcessor

public void setDropTargetProcessor(IResourceExtensionProcessor module)
Description copied from interface: IResourceExtensionProcessorSource
The Resource Explorer will use this method to store the assocation between this object and the IResourceExtensionProcessor. This happens when it is reading the IExtensionRegistry to find suitable plugins.

Specified by:
setDropTargetProcessor in interface IResourceExtensionProcessorSource
Parameters:
module - IResourceExtensionProcessor for this item.

getIconImage

public org.eclipse.swt.graphics.Image getIconImage()

findFromIds

public static ObjectType findFromIds(String pluginID,
                                     String editorId)

findFromEditorId

public static ObjectType findFromEditorId(String editorId)

toString

public String toString()

getALItem

public String getALItem()
Specified by:
getALItem in interface IAuthorityListItem

getALID

public int getALID()
Specified by:
getALID in interface IAuthorityListItem
Specified by:
getALID in class BaseObject