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

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

public class NoteLucened
extends Note

an extension of the {link Note} class generated by rdb2java and managing the DB storage of data to support the simultaneous storing of Note text by Lucene.

The Lucene index is only set up and operational in each Pliny session after the first time the user uses the Note Search view. Thus, each take the name or content fields are changed, or a recorded added or deleted the code here first checks to see if the Lucene index is set up, and if it is, asks it to update its material at the same time.

Author:
John Bradley

Nested Class Summary
 
Nested classes inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject
BaseObject.ListItemData
 
Field Summary
 
Fields inherited from class uk.ac.kcl.cch.jb.pliny.model.Note
CONTENT_PROP, myCache, NOTE_EDITOR_ID, 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
NoteLucened()
           
NoteLucened(boolean realEmpty)
           
 
Method Summary
 void deleteMe()
           
static NoteLucened getNoteLucenedItem(int key)
           
 void reIntroduceMe()
           
 void setContent(String parm)
           
 void setName(String parm)
           
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.model.Note
doInsert, getALID, getALItem, getContent, getIdentifier, getKeyName, getMyConnection, getNoteItem, getNoteObjectType, getSashPosition, getSelectEntities, getSQLFrom, getTableJoins, getTableName, getTStamp, loadFromResultSet, openEditor, returnMyConnection, setEmpty, setSashPosition, setTStamp, 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, 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
 

Constructor Detail

NoteLucened

public NoteLucened(boolean realEmpty)

NoteLucened

public NoteLucened()
Method Detail

getNoteLucenedItem

public static NoteLucened getNoteLucenedItem(int key)

setContent

public void setContent(String parm)
Overrides:
setContent in class Note

setName

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

deleteMe

public void deleteMe()
Overrides:
deleteMe in class Note

reIntroduceMe

public void reIntroduceMe()
Overrides:
reIntroduceMe in class Note