Package hec.io.dbf

Class DefaultDbfRecordSet

All Implemented Interfaces:
DbfRecordIndexSet, DbfRecordSet, Serializable

public class DefaultDbfRecordSet extends DbfRecordQuery implements DbfRecordSet
Contains a set of DBF records as a query result or a insert/update set.
See Also:
  • Constructor Details

    • DefaultDbfRecordSet

      public DefaultDbfRecordSet(DbfRecordQuery query)
      Constructs a Dbf Record Set for a query.
    • DefaultDbfRecordSet

      public DefaultDbfRecordSet(String[] fieldNames)
      Constructs a DefaultDbfRecordSet for a given set of field names.
    • DefaultDbfRecordSet

      public DefaultDbfRecordSet(String tagName, String[] fieldNames)
      Constructs a DefaultDbfRecordSet for a given set of field names using the supplied tag name.
    • DefaultDbfRecordSet

      public DefaultDbfRecordSet(String tagName, String[] fieldNames, int indexTagKeyColumn)
  • Method Details

    • size

      public int size()
      Returns the number of Dbf Records in this set.
      Specified by:
      size in interface DbfRecordSet
      Returns:
    • get

      public DbfRecord get(int i)
      Returns the Dbf Record at the argument index.
      Specified by:
      get in interface DbfRecordSet
    • add

      public void add(Serializable indexTagKey, Vector data)
      Create a new record in this set using the argument index tag key and data vector.
      Specified by:
      add in interface DbfRecordSet
    • add

      public void add(DbfRecord rec)
      Adds the argument Dbf record to this set. If the record is already in this set it is replaced. The record number is added to the record numbers array.
      Specified by:
      add in interface DbfRecordSet
    • iterator

      public Iterator iterator()
      Returns an iterator for this record set.
      Specified by:
      iterator in interface DbfRecordSet
    • printData

      public void printData()
      Prints descriptive information on this object to standard out.
      Specified by:
      printData in interface DbfRecordIndexSet
      Specified by:
      printData in interface DbfRecordSet
      Overrides:
      printData in class DbfRecordQuery