Package hec.model

Interface CommonDataList

All Known Subinterfaces:
DataList

public interface CommonDataList
Interface shared by client and server side data lists These methods are restricted to local (non-rmi) access.
  • Method Details

    • addDataListListener

      void addDataListListener(DataListListener listener)
    • removeDataListListener

      void removeDataListListener(DataListListener listener)
    • doesExist

      boolean doesExist(String name)
    • getObjectCount

      int getObjectCount()
    • findObjectById

      DataObject findObjectById(long objId, String objClass)
      find the DataObject with the ID objId of the class objClass in this DataList or any of it's sibling's Lists
    • getObject

      DataObject getObject(long objId)
      return the DataObject in this list that has the id of objID
    • getObject

      DataObject getObject(String objName)
      return the first DataObject in this list with the name objName
    • saveObject

      boolean saveObject(Object obj)
      save the object back to permanent storage
    • loadObject

      Object loadObject(DataObject dObj)
      load an object from the data store for this DataObject
    • removeObject

      boolean removeObject(long id)
      remove the Data Object with the ID id
    • removeAll

      int removeAll()
      Removes all objects from this data list.
    • getObjectClass

      String getObjectClass()
      return the string representation of the DataObject class that we hold
    • callNativeMethod

      Object callNativeMethod(Object obj)
      call a native method in the RmiDataList's DataStorage
    • getObjectArray

      DataStruct[] getObjectArray()
      get an array of DataObjects
    • newDataObject

      DataObject newDataObject(String name, String description)
      create a new DataObject with the name and description
    • addNewObject

      boolean addNewObject(DataObject dObj)
      add the DataObject dObj to the datalist and permanent storage
    • backupObjectData

      boolean backupObjectData(String backupDir, DataObject dObj)
      back up the data for this object
    • backupData

      boolean backupData(String backupDir)
      back up the data for this data list
    • setModified

      void setModified(boolean b)
    • isModified

      boolean isModified()
    • getCommonDataListContainer

      CommonDataListContainer getCommonDataListContainer()
    • getUnitSystem

      int getUnitSystem()
    • getGmtOffset

      int getGmtOffset()