Package hec.model

Class AbstractDBFObject

All Implemented Interfaces:
AbstractDataListener, DataChangeListener, LockListener, AsciiSerializable, DBFSerializable, FieldAccessor, DataObject, DataStruct, Serializable, Cloneable, Comparable, EventListener, Observer, Modifiable
Direct Known Subclasses:
ModifiedTime, SimpleCustomUserTypeObject, SimpleParentDbfObject

public abstract class AbstractDBFObject extends AbstractDataObject implements DBFSerializable
This class provides a base in which to derive data objects from that can be Serialized into a DBF database file. This class subclass hec.model.AbstractDataObject and takes care of generating the DBF information for the Name/Description/ID. All sublasses should override the createMappingInformation method to add there own mapping information. Also classes should override setFieldObject and getFieldObject in order for the DBFSerializer to get the neccessary fields from the Object.
Since:
December 6, 2000
See Also:
  • Field Details

    • FALSE

      public static final int FALSE
      See Also:
    • TRUE

      public static final int TRUE
      See Also:
    • ID_TAG

      public static String ID_TAG
      The DBF Tag that represents the ID of the object
    • NAME_TAG

      protected static String NAME_TAG
      The DBF Tag that represents the name of the object
    • FD_ID

      protected String FD_ID
      Represents the name of the column for the object name
    • FD_NAME

      protected String FD_NAME
      Represents the name of the column for the object ID
    • NAME_SIZE

      public int NAME_SIZE
    • DESC_SIZE

      public int DESC_SIZE
    • _dbfMap

      protected DBFMappingClass _dbfMap
      The class that maps class fields to DBF fields
  • Constructor Details

    • AbstractDBFObject

      public AbstractDBFObject()
    • AbstractDBFObject

      public AbstractDBFObject(long id, CommonDataList datalist)
  • Method Details