Package hec.io.dbf

Class DBFCollectionObject

java.lang.Object
hec.io.dbf.DBFCollectionObject
All Implemented Interfaces:
DBFSerializable, FieldAccessor

public class DBFCollectionObject extends Object implements DBFSerializable
  • Constructor Details

    • DBFCollectionObject

      public DBFCollectionObject()
  • Method Details

    • DBFCollectionObject

      public void DBFCollectionObject()
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setCollectionObject

      public void setCollectionObject(DBFSerializable cObj)
    • getIDTag

      public String getIDTag()
      Description copied from interface: DBFSerializable
      Gets the string TAG that allows the database to select the column of data in the database that uniquely identifies each object in the database.
      Specified by:
      getIDTag in interface DBFSerializable
      Returns:
      The string tag value
    • getId

      public long getId()
      Description copied from interface: DBFSerializable
      Gets the identifier for this object
      Specified by:
      getId in interface DBFSerializable
    • getMappingInformation

      public DBFMappingClass getMappingInformation()
      Description copied from interface: DBFSerializable
      Returns the necessary mapping information that maps a member field to a column in the DBF file.
      Specified by:
      getMappingInformation in interface DBFSerializable
      Returns:
      The mapping object
    • getName

      public String getName()
      Specified by:
      getName in interface DBFSerializable
    • getNameTag

      public String getNameTag()
      Description copied from interface: DBFSerializable
      Returns the string TAG that allows the database to select the name column of data in that database
      Specified by:
      getNameTag in interface DBFSerializable
      Returns:
      The string tag value
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful
    • setId

      public boolean setId(long id)
      Description copied from interface: DBFSerializable
      sets the identifier for this object
      Specified by:
      setId in interface DBFSerializable