Package hec.model

Interface DataObject

All Superinterfaces:
AbstractDataListener, DataChangeListener, DataStruct, EventListener, LockListener, Serializable
All Known Implementing Classes:
AbstractDataObject, AbstractDBFObject, ModifiedTime, SimpleAnnotationDbfObject, SimpleCustomUserTypeObject, SimpleParentDbfObject, UnmodifiableDataObject

public interface DataObject extends DataChangeListener, LockListener, DataStruct, Serializable
  • Method Details

    • setId

      boolean setId(long id)
      set this DataObject's ID
    • getName

      String getName()
      return this DataObject's Name
    • getDescription

      String getDescription()
      return this DataObject's Description
    • setName

      void setName(String name)
      set this DataObject's Name
    • setDescription

      void setDescription(String description)
      set this DataObject's description
    • loadId

      boolean loadId()
      load this DataObject's ID info
    • loadData

      boolean loadData()
      load this DataObject's Data
    • reload

      void reload()
      reload this objects data
    • locked

      void locked(boolean lock, String user)
      tell this object whether someone else has it's data locked or not
    • save

      boolean save()
      save this DataObject
    • setDataList

      boolean setDataList(CommonDataList dataList)
      set this DataObject's DataList
    • getDataList

      CommonDataList getDataList()
      return this DataObject's DataList
    • copyInto

      void copyInto(DataObject doObj)
      copy DataObject do's data into this one
    • copyInto

      void copyInto(DataStruct dsObj)
      copy the DataStructs data into this DataObject
    • getObjectReferences

      DataObjectReference[] getObjectReferences()
      get an array of this DataObject's DataObjectReferences.
    • addObjectReference

      boolean addObjectReference(DataObjectReference ref)
      add a DataObjectReference to this object
    • removeObjectReference

      void removeObjectReference(int pos)
      remove a DataObjectReference to this object
    • addObserver

      void addObserver(AbstractDataListener doo)
      add an observer to myself
    • removeObserver

      void removeObserver(AbstractDataListener doo)
      remove an observer from my list of observers
    • setModified

      void setModified(boolean mod)
      set whether this object has been modified
    • isModified

      boolean isModified()
      see if this object's data has been modified
    • getData

      DataStruct getData()
      return this objects data
    • isLoaded

      boolean isLoaded()
      has this objects data been loaded?
    • setParent

      void setParent(DataObject parent)
      set this objects parent DataObject
    • getParent

      DataObject getParent()
      get this objects parent Dataobject (if any)
    • incrementRefCnt

      void incrementRefCnt()
      for counts of DataObjectReferences refering to this object
    • decrementRefCnt

      void decrementRefCnt()
    • getRefCnt

      int getRefCnt()
    • delete

      void delete()
      Call when a data object is deleted. Allows the object to clean up after itself