Package hec.io.dbf
Class DefaultDbfRecordSet
java.lang.Object
hec.io.dbf.DefaultDbfRecordIndexSet
hec.io.dbf.DbfRecordQuery
hec.io.dbf.DefaultDbfRecordSet
- All Implemented Interfaces:
DbfRecordIndexSet,DbfRecordSet,Serializable
Contains a set of DBF records as a query result or a insert/update set.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a Dbf Record Set for a query.DefaultDbfRecordSet(String[] fieldNames) Constructs a DefaultDbfRecordSet for a given set of field names.DefaultDbfRecordSet(String tagName, String[] fieldNames) Constructs a DefaultDbfRecordSet for a given set of field names using the supplied tag name.DefaultDbfRecordSet(String tagName, String[] fieldNames, int indexTagKeyColumn) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the argument Dbf record to this set.voidadd(Serializable indexTagKey, Vector data) Create a new record in this set using the argument index tag key and data vector.get(int i) Returns the Dbf Record at the argument index.iterator()Returns an iterator for this record set.voidPrints descriptive information on this object to standard out.intsize()Returns the number of Dbf Records in this set.Methods inherited from class hec.io.dbf.DbfRecordQuery
getFieldNamesMethods inherited from class hec.io.dbf.DefaultDbfRecordIndexSet
getIndexFileName, getIndexTagKeys, getIndexTagName, hasIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hec.io.dbf.DbfRecordIndexSet
getIndexFileName, getIndexTagKeys, getIndexTagName, hasIndexMethods inherited from interface hec.io.dbf.DbfRecordSet
getFieldNames
-
Constructor Details
-
DefaultDbfRecordSet
Constructs a Dbf Record Set for a query. -
DefaultDbfRecordSet
Constructs a DefaultDbfRecordSet for a given set of field names. -
DefaultDbfRecordSet
Constructs a DefaultDbfRecordSet for a given set of field names using the supplied tag name. -
DefaultDbfRecordSet
-
-
Method Details
-
size
public int size()Returns the number of Dbf Records in this set.- Specified by:
sizein interfaceDbfRecordSet- Returns:
-
get
Returns the Dbf Record at the argument index.- Specified by:
getin interfaceDbfRecordSet
-
add
Create a new record in this set using the argument index tag key and data vector.- Specified by:
addin interfaceDbfRecordSet
-
add
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:
addin interfaceDbfRecordSet
-
iterator
Returns an iterator for this record set.- Specified by:
iteratorin interfaceDbfRecordSet
-
printData
public void printData()Prints descriptive information on this object to standard out.- Specified by:
printDatain interfaceDbfRecordIndexSet- Specified by:
printDatain interfaceDbfRecordSet- Overrides:
printDatain classDbfRecordQuery
-