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

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.Resource
              extended byuk.ac.kcl.cch.jb.pliny.model.Note
All Implemented Interfaces:
IAuthorityListItem, ILoadableFromResultSet, INamedObject, IPropertyChangeObject
Direct Known Subclasses:
NoteLucened

public class Note
extends Resource
implements IAuthorityListItem, ILoadableFromResultSet


Nested Class Summary
 
Nested classes inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject
BaseObject.ListItemData
 
Field Summary
static String CONTENT_PROP
           
protected static NoteQuery myCache
           
static String NOTE_EDITOR_ID
           
static String TSTAMP_PROP
           
 
Fields inherited from class uk.ac.kcl.cch.jb.pliny.model.Resource
ATTRIBUTES_PROP, FAVOURITES_PROP, FULLNAME_PROP, IDENTIFIER_PROP, IDSTART_PROP, INITCHAR_PROP, MYDISPLAYEDITEMS_PROP, MYSOURCEROLES_PROP, MYSURROGATES_PROP, MYTARGETROLES_PROP, NAME_PROP, OBJECTTYPEKEY_PROP, resourceKey
 
Constructor Summary
Note()
           
Note(boolean realEmpty)
           
 
Method Summary
 void deleteMe()
           
protected  void doInsert()
           
 int getALID()
           
 String getALItem()
           
 String getContent()
           
 String getIdentifier()
           
protected  String getKeyName()
           
protected  Connection getMyConnection()
           
static Note getNoteItem(int key)
           
static ObjectType getNoteObjectType()
           
 int getSashPosition()
           
static String getSelectEntities()
           
static String getSQLFrom()
           
static String getTableJoins()
           
protected  String getTableName()
           
 Timestamp getTStamp()
           
 int loadFromResultSet(ResultSet rs)
           
 void openEditor(org.eclipse.ui.IWorkbenchPage page)
           
 void reIntroduceMe()
           
protected  void returnMyConnection(Connection con)
           
 void setContent(String parm)
           
protected  void setEmpty()
           
 void setSashPosition(int val)
           
 void setTStamp(Timestamp parm)
           
 String toString()
           
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.model.Resource
assignMyReferencesTo, assignMyReferencesTo, closeMyEditor, EditorInput2idString, find, find, getAttributes, getCurrentPage, getFavourites, getFullName, getIdStart, getInitChar, getInitChar, getItem, getMyDisplayedItems, getMyPagedDisplayedItems, getMySourceRoles, getMySurrogates, getMyTargetRoles, getName, getObjectType, getObjectTypeKey, getResourceKey, getUrl, idString2EditorInput, isDeletable, isFavourite, openEditor, setAttributes, setCurrentPage, setFullName, setIdentifier, setIdentifiers, setIdentifiers, setIdStart, setInitChar, setName, setObjectType, signalChangeFavourites, signalChangeMyDisplayedItems, signalChangeMySourceRoles, signalChangeMySurrogates, signalChangeMyTargetRoles, updateDBName
 
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 NoteQuery myCache

CONTENT_PROP

public static final String CONTENT_PROP
See Also:
Constant Field Values

TSTAMP_PROP

public static final String TSTAMP_PROP
See Also:
Constant Field Values

NOTE_EDITOR_ID

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

Note

public Note(boolean realEmpty)

Note

public Note()
Method Detail

setEmpty

protected void setEmpty()
Overrides:
setEmpty in class Resource

getSelectEntities

public static String getSelectEntities()

getTableJoins

public static String getTableJoins()

getSQLFrom

public static String getSQLFrom()

getKeyName

protected String getKeyName()
Overrides:
getKeyName in class Resource

getTableName

protected String getTableName()
Overrides:
getTableName in class Resource

getMyConnection

protected Connection getMyConnection()
Overrides:
getMyConnection in class Resource

returnMyConnection

protected void returnMyConnection(Connection con)
Overrides:
returnMyConnection in class Resource

loadFromResultSet

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

getNoteItem

public static Note getNoteItem(int key)

getContent

public String getContent()

getTStamp

public Timestamp getTStamp()

setContent

public void setContent(String parm)

setTStamp

public void setTStamp(Timestamp parm)

doInsert

protected void doInsert()
Overrides:
doInsert in class Resource

deleteMe

public void deleteMe()
Overrides:
deleteMe in class Resource

reIntroduceMe

public void reIntroduceMe()
Overrides:
reIntroduceMe in class Resource

openEditor

public void openEditor(org.eclipse.ui.IWorkbenchPage page)
                throws org.eclipse.ui.PartInitException
Overrides:
openEditor in class Resource
Throws:
org.eclipse.ui.PartInitException

getNoteObjectType

public static ObjectType getNoteObjectType()

getIdentifier

public String getIdentifier()
Overrides:
getIdentifier in class Resource

getSashPosition

public int getSashPosition()

setSashPosition

public void setSashPosition(int val)

toString

public String toString()
Overrides:
toString in class Resource

getALItem

public String getALItem()
Specified by:
getALItem in interface IAuthorityListItem
Overrides:
getALItem in class Resource

getALID

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