dmRecordSet Update v1.2
December 13, 2013 4 Comments
I just published an update to the dmRecordSet class, a more useable and flexible alternative to the DFC’s IDfCollection class. Here is a quick list of improvements/changes in this release:
- added getRecordSetAsList() method – returns the record set as a Java List
- added getRecordSetAsSet() method – returns the record set as a Java Set (contains only unique objects)
- added getRecordSetInfo() method – returns a String of stats about record set
- added getRowCount() – returns number of rows in record set
- added getColumnCount() – returns number of columns in record set
- added static getVersion() – returns version information for class
- changed getRow() to issue DfLogger statement if invalid row requested, instead of throwing exception
- Deprecated first(), replaced with getFirstRow()
- Deprecated last(), replaced with getLastRow()
- Deprecated next(), replaced with getNextRow()
- Deprecated getRow(), replaced with getCurrentRow()
- Deprecated previous(), replaced with getPreviousRow()
- Deprecated resetBeginning(), replaced with resetToBeginning()
- Deprecated resetEnd(), replaced with resetToEnd()
- getNextRow() and getPreviousRow() use getRow()
- updated CollectionExamples test class
I also included a short tutorial that walks through some basic uses of the class.
The latest dmRecordSet class can be downloaded here.