java.lang.Object
com.cybertivity.powerjournal.database.DBManager
com.cybertivity.powerjournal.database.EntryManager
- public class EntryManager
- extends DBManager
Title: PowerJournal
Description: $Id: EntryManager.java,v 1.8 2001/12/27 20:27:47 arrowood Exp $
Copyright: Copyright (c) 2001
Company: Cybertivity
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
V01_TABLE_NAME
public static final java.lang.String V01_TABLE_NAME
- See Also:
- Constant Field Values
instance
private static EntryManager instance
entryIds
private java.util.TreeSet entryIds
configManager
private ConfigManager configManager
journalManager
private JournalManager journalManager
tableName
private java.lang.String tableName
suppressPrivateEntries
private boolean suppressPrivateEntries
EntryManager
public EntryManager(java.lang.String journalName,
JournalManager journalManagerArg,
boolean isGuest)
throws DBException
changeJournal
public void changeJournal(java.lang.String journalName)
throws DBException
oldDatabaseVersionExists
public boolean oldDatabaseVersionExists()
throws DBException
importFromPreviousVersion
public void importFromPreviousVersion(boolean dropOldTable)
throws DBException
getInstance
public static EntryManager getInstance(java.lang.String journalName,
JournalManager journalManagerArg,
boolean isGuest,
boolean forceNew)
throws DBException
getInstance
public static EntryManager getInstance(java.lang.String journalName,
JournalManager journalManagerArg,
boolean isGuest)
throws DBException
insertEntryToTable
public void insertEntryToTable(com.cybertivity.powerjournal.Entry entry)
throws DBException
cacheEntryIds
private void cacheEntryIds(boolean force)
throws DBException
cacheEntryIds
private void cacheEntryIds()
throws DBException
getEntries
public java.util.ArrayList getEntries()
throws DBException
getEntriesFromPreviousVersion
private java.util.ArrayList getEntriesFromPreviousVersion()
throws DBException
getEntryFromQuery
private com.cybertivity.powerjournal.Entry getEntryFromQuery(java.lang.String query)
throws DBException
moveToFirstEntry
public com.cybertivity.powerjournal.Entry moveToFirstEntry()
throws DBException
moveToLastEntry
public com.cybertivity.powerjournal.Entry moveToLastEntry()
throws DBException
moveToNextEntry
public com.cybertivity.powerjournal.Entry moveToNextEntry(java.lang.String currentEntryID)
throws DBException
deleteEntry
public void deleteEntry(java.lang.String currentEntryID)
throws DBException
getEntryById
public com.cybertivity.powerjournal.Entry getEntryById(java.lang.String currentEntryID)
throws DBException
moveToPreviousEntry
public com.cybertivity.powerjournal.Entry moveToPreviousEntry(java.lang.String currentEntryID)
throws DBException
updateCurrentEntry
public void updateCurrentEntry(com.cybertivity.powerjournal.Entry entry,
int idNumber)
throws DBException
createEntryFromCurrentRow
private com.cybertivity.powerjournal.Entry createEntryFromCurrentRow()
throws DBException
createEntryFromCurrentRowFromPreviousVersion
private com.cybertivity.powerjournal.Entry createEntryFromCurrentRowFromPreviousVersion()
throws DBException
getPosition
private int getPosition(int id)
throws DBException
createEntriesTables
public void createEntriesTables()
throws DBException
getEntryCount
public int getEntryCount()
throws DBException
createTableIfMissing
private void createTableIfMissing()
throws DBException
prepareDatabase
public void prepareDatabase()
throws DBException
createExampleEntry
private void createExampleEntry()
throws DBException