Class DBPersistenceManager

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      DBPersistenceManager​(java.io.InputStream input)
      Duplicate constructor allowing inputstream
      DBPersistenceManager​(java.lang.String filename)
      Default construct
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears the key-cache as well as all entries
      protected void init​(java.io.InputStream in)
      used to intitiailize complete DB access.
      java.io.Serializable remove​(java.io.Serializable key)
      Removes existing entry.
      java.util.Map retrieveAll()
      Used to retrieve the persisted map back to its last known state
      void save​(java.io.Serializable key, java.io.Serializable val)
      Saves NV pair as serializable object; creates if new, stores new state if already exists.
      void saveAll​(java.util.Map map)
      Saves all row entries for the map to DB.
      void shutDown()
      Shutting down the database cleanly
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected final org.apache.commons.logging.Log log
    • Constructor Detail

      • DBPersistenceManager

        public DBPersistenceManager​(java.lang.String filename)
                             throws java.lang.Exception
        Default construct
        Parameters:
        filename - absolute filepath
        Throws:
        java.lang.Exception
      • DBPersistenceManager

        public DBPersistenceManager​(java.io.InputStream input)
                             throws java.lang.Exception
        Duplicate constructor allowing inputstream
        Parameters:
        input -
        Throws:
        java.lang.Exception