Package hec.io.dbf
Class DbfQueryResultSet
java.lang.Object
hec.io.dbf.DefaultDbfRecordIndexSet
hec.io.dbf.DbfResultSet
hec.io.dbf.DbfQueryResultSet
- All Implemented Interfaces:
DbfRecordIndexSet,DbfRecordSet,Serializable
An object the contains the results of a DBF query.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the argument Dbf record to record set.voidadd(Serializable indexTagKey, Vector data) Creates a new DbfRecord using the argument data and adds it to the set.get(int i) Returns the Dbf Record at the argument index.String[]Returns the fields for these query results.iterator()Returns an iterator for this record set.voidPrints descriptive information on this object to System.out.intsize()Returns the number of Dbf Records in this set.Methods inherited from class hec.io.dbf.DbfResultSet
add, add, getError, getErrorCount, getErrorsMethods 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, hasIndex
-
Constructor Details
-
DbfQueryResultSet
-
-
Method Details
-
size
public int size()Description copied from interface:DbfRecordSetReturns 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
Adds the argument Dbf record to record set. If the record is already in this set it is replaced.- Specified by:
addin interfaceDbfRecordSet
-
add
Creates a new DbfRecord using the argument data and adds it to the set.- Specified by:
addin interfaceDbfRecordSet
-
iterator
Returns an iterator for this record set.- Specified by:
iteratorin interfaceDbfRecordSet
-
getFieldNames
Returns the fields for these query results.- Specified by:
getFieldNamesin interfaceDbfRecordSet
-
printData
public void printData()Prints descriptive information on this object to System.out.- Specified by:
printDatain interfaceDbfRecordIndexSet- Specified by:
printDatain interfaceDbfRecordSet- Overrides:
printDatain classDbfResultSet
-