Package hec.io.dbf
Class DBFCollectionObject
java.lang.Object
hec.io.dbf.DBFCollectionObject
- All Implemented Interfaces:
DBFSerializable,FieldAccessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.longgetId()Gets the identifier for this objectgetIDTag()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.Returns the necessary mapping information that maps a member field to a column in the DBF file.getName()Returns the string TAG that allows the database to select the name column of data in that databasevoidbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.booleansetId(long id) sets the identifier for this object
-
Constructor Details
-
DBFCollectionObject
public DBFCollectionObject()
-
-
Method Details
-
DBFCollectionObject
public void DBFCollectionObject() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setCollectionObject
-
getIDTag
Description copied from interface:DBFSerializableGets 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:
getIDTagin interfaceDBFSerializable- Returns:
- The string tag value
-
getId
public long getId()Description copied from interface:DBFSerializableGets the identifier for this object- Specified by:
getIdin interfaceDBFSerializable
-
getMappingInformation
Description copied from interface:DBFSerializableReturns the necessary mapping information that maps a member field to a column in the DBF file.- Specified by:
getMappingInformationin interfaceDBFSerializable- Returns:
- The mapping object
-
getName
- Specified by:
getNamein interfaceDBFSerializable
-
getNameTag
Description copied from interface:DBFSerializableReturns the string TAG that allows the database to select the name column of data in that database- Specified by:
getNameTagin interfaceDBFSerializable- Returns:
- The string tag value
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
setId
public boolean setId(long id) Description copied from interface:DBFSerializablesets the identifier for this object- Specified by:
setIdin interfaceDBFSerializable
-