suncertify.db
Class DataInfo
java.lang.Object
|
+--suncertify.db.DataInfo
- public class DataInfo
- extends java.lang.Object
- implements java.io.Serializable
This class embodies the description of a record from the database.
It describes a record number, a list of Strings which reflect
the values of the fields in, and a description of each field.
- Version:
- 1.0 07/31/1999
- See Also:
- Serialized Form
Constructor Summary |
DataInfo(int recordNumber,
FieldInfo[] fields)
This constructor creates a DataInfo object which has null
Strings for its field values. |
DataInfo(int recordNumber,
FieldInfo[] fields,
java.lang.String[] values)
This constructor creates a DataInfo object that contains
Strings for its field values. |
Method Summary |
FieldInfo[] |
getFields()
This method returns an array of FieldInfo objects. |
int |
getRecordNumber()
This method returns the record number associated with this
DataInfo. |
java.lang.String[] |
getValues()
This method returns an array of Strings, which reflect the
values of the fields in this DataItem. |
java.lang.String |
toString()
This method constructs and returns a String which describes
this DataInfo object in a form suitable for debug output. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DataInfo
public DataInfo(int recordNumber,
FieldInfo[] fields)
- This constructor creates a DataInfo object which has null
Strings for its field values.
- Parameters:
recordNumber
- - the unique number for this record.fields
- - the array of FieldInfo objects
which represent the names and
lenghts of the fields in this
DataInfo object.
DataInfo
public DataInfo(int recordNumber,
FieldInfo[] fields,
java.lang.String[] values)
- This constructor creates a DataInfo object that contains
Strings for its field values.
- Parameters:
recordNumber
- - the unique number for this record.fields
- - the array of FieldInfo objects
which represent the names and
lenghts of the fields in this
DataInfo object.values
- - The values for the field values.
getRecordNumber
public int getRecordNumber()
- This method returns the record number associated with this
DataInfo.
getValues
public java.lang.String[] getValues()
- This method returns an array of Strings, which reflect the
values of the fields in this DataItem.
getFields
public FieldInfo[] getFields()
- This method returns an array of FieldInfo objects. These
describe the database schema in terms of the name and
width of each field.
toString
public java.lang.String toString()
- This method constructs and returns a String which describes
this DataInfo object in a form suitable for debug output.
- Overrides:
- toString in class java.lang.Object