Package hec.model

Interface DataList

All Superinterfaces:
CommonDataList, Serializable

public interface DataList extends CommonDataList, Serializable
  • Method Details

    • iterator

      Iterator iterator()
    • getObject

      DataObject getObject(long objId)
      return the DataObject in this list that has the id of objID
      Specified by:
      getObject in interface CommonDataList
    • loadObject

      Object loadObject(long id)
      load an object from the data store for this Data Object id
    • saveAll

      boolean saveAll(String user)
      save all the DataObjects in my list
    • getDataListContainer

      IDataListContainer getDataListContainer()
      return this DataList's DataListContainer
    • addDataObject

      boolean addDataObject(DataObject dataObj)
      add a DataObject to my list
    • hasBeenInitd

      boolean hasBeenInitd()
      has this DataList been init'd?
    • init

      boolean init()
      initialize this DataList
    • workspaceClosing

      boolean workspaceClosing()
      called when the workspace is closing
    • getObjectClass

      String getObjectClass()
      return the string representation of the DataObject class that we hold
      Specified by:
      getObjectClass in interface CommonDataList
    • setModelName

      void setModelName(String model)
      set the workspace model name
    • getModelName

      String getModelName()
      get the workspace model name
    • getObjects

      DataObject[] getObjects()
      get an array of DataObjects
    • getObjectCount

      int getObjectCount()
      get the DataObject Count
      Specified by:
      getObjectCount in interface CommonDataList
    • isModified

      boolean isModified()
      has the data in this DataList been changed?
      Specified by:
      isModified in interface CommonDataList
    • addNewObject

      boolean addNewObject(DataObject dObj)
      add the DataObject dObj to the datalist and permanent storage
      Specified by:
      addNewObject in interface CommonDataList
    • addNewObject2

      DataObject addNewObject2(DataObject dataObj)
      add a DataObject to my list returning the DataObject
    • doesExist

      boolean doesExist(String name)
      Specified by:
      doesExist in interface CommonDataList
    • reload

      boolean reload(String user)
      have the DataList drop all objects and reload them from the data storage
    • getLastModifiedTime

      long getLastModifiedTime()
      Returns the last time of modification in miliseconds;