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 TypeMethodDescriptionvoid
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.long
getId()
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 databasevoid
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.boolean
setId
(long id) sets the identifier for this object
-
Constructor Details
-
DBFCollectionObject
public DBFCollectionObject()
-
-
Method Details
-
DBFCollectionObject
public void DBFCollectionObject() -
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setCollectionObject
-
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 interfaceDBFSerializable
- Returns:
- The string tag value
-
getId
public long getId()Description copied from interface:DBFSerializable
Gets the identifier for this object- Specified by:
getId
in interfaceDBFSerializable
-
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 interfaceDBFSerializable
- Returns:
- The mapping object
-
getName
- Specified by:
getName
in interfaceDBFSerializable
-
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 interfaceDBFSerializable
- Returns:
- The string tag value
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in 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:DBFSerializable
sets the identifier for this object- Specified by:
setId
in interfaceDBFSerializable
-