Package hec.io

Interface DataStorage

All Known Implementing Classes:
AbstractDataStorage, DBFDataStorage

public interface DataStorage
  • Method Details

    • init

      boolean init()
      initialize this DataStorage
    • loadObject

      Object loadObject(long id, String objClass)
      load and return the object identified by id
    • loadObject

      Object loadObject(String name, String objClass)
      load and return the object identified by name
    • storeObject

      boolean storeObject(Object obj)
      store obj out to permanent storage
    • removeObject

      boolean removeObject(long objId, String objClass)
      remove an object
    • removeObject

      boolean removeObject(long[] objId, String objClass)
    • callNativeMethod

      Object callNativeMethod(Object obj)
      call a native method in the DataStore.
    • addNewObject

      long addNewObject(Object obj)
      add a new object to the DataStore return its id.
    • addNewObject2

      DataObject addNewObject2(Object obj)
      add a new object to the DataStore and return a copy of the object with it's id filled in
    • getDataObjectIdList

      Object[] getDataObjectIdList(String objClass)
      return a list of the DataObjects
    • getObjectList

      DataStruct[] getObjectList(String objClass)
    • save

      boolean save()
    • workspaceClosing

      void workspaceClosing()
    • backupData

      boolean backupData(String backupDir, DataObject obj)
    • reload

      boolean reload()
    • getLastModifiedTime

      long getLastModifiedTime()
    • getFilename

      String getFilename()
    • getObjectCount

      int getObjectCount()
    • compress

      void compress()
      Compress the data file by removing any objects marked for deletion.