Package hec.io.dbf

Class AsciiSerializableDbfHeader

java.lang.Object
hec.io.dbf.AbstractDBFHeader
hec.io.dbf.AsciiSerializableDbfHeader
All Implemented Interfaces:
DBFHeader, Serializable
Direct Known Subclasses:
AsciiDbfDataStorageHeader

public class AsciiSerializableDbfHeader extends AbstractDBFHeader
A class that defines all of the dbf header and index information needed for AsciiSerializable DBF files.
See Also:
  • Field Details

    • TAG_NAME

      public static final String TAG_NAME
      Constant defining the "name" field's index tag.
      See Also:
    • TAG_ID

      public static final String TAG_ID
      Constant defining the id index tag.
      See Also:
    • FIELD_ID

      public static final String FIELD_ID
      Constant defining the id field.
      See Also:
    • FIELD_NAME

      public static final String FIELD_NAME
      Constant defining the name field.
      See Also:
    • FIELD_DESC

      public static final String FIELD_DESC
      Constant defining the description field.
      See Also:
    • FIELD_OBJ

      public static final String FIELD_OBJ
      Constant defining the field name for the AsciiSerialized object.
      See Also:
    • _fieldNames

      protected Vector _fieldNames
      A Vector containing the field names.
    • _f4infoC

      protected Field4infoContainer _f4infoC
      Contains all of the field information.
    • _tag4infoC

      protected Tag4infoContainer _tag4infoC
      Contains the index information for Ascii Serializable dbf files.
  • Constructor Details

    • AsciiSerializableDbfHeader

      public AsciiSerializableDbfHeader()
  • Method Details

    • init

      protected void init()
      Creates the field descriptors in the super class.
    • getTag4infoContainer

      public Tag4infoContainer getTag4infoContainer() throws codebase.Error4usage
      Returns the index information for Ascii Serializable Dbf files.
      Throws:
      codebase.Error4usage
    • getFieldNames

      public String[] getFieldNames()
      Returns a Vector containing the field names.
      Specified by:
      getFieldNames in interface DBFHeader
      Overrides:
      getFieldNames in class AbstractDBFHeader
    • getTags

      public String[] getTags()
      Returns a String array containing the index tags.
    • getField4infoContainer

      public Field4infoContainer getField4infoContainer()
      Returns the field 4 info accessor for this header.
    • buildDbfRecordIdQuery

      public DbfRecordQuery buildDbfRecordIdQuery()
      Creates a query for this header that will retrieve all of the records using the Id index tag.
    • buildDbfRecordIdQuery

      public DbfRecordQuery buildDbfRecordIdQuery(Serializable[] indexTagKeys)
      Creates a query for this header that will retrieve all of the records using the Id index tag and the supplied Id tag keys.
    • buildDbfRecordNameQuery

      public DbfRecordQuery buildDbfRecordNameQuery(Serializable[] indexTagKeys)
      Creates a query for this header that will retrieve all of the records using the NAME index tag and the supplied Name tag keys.
    • buildDbfRecordIndexSet

      public DefaultDbfRecordIndexSet buildDbfRecordIndexSet(Serializable[] indexTagKeys)
      Creates a record number set for this header that can be used to delete records.
    • buildDbfRecordSet

      public DbfRecordSet buildDbfRecordSet()
      Returns a DbfRecordSet for this header containing the index tag. and field names.
    • getDbaseVersionCode

      public byte getDbaseVersionCode()
      Specified by:
      getDbaseVersionCode in class AbstractDBFHeader