Skip to content

Commit 35f6694

Browse files
committed
Restore next() method.
1 parent 4124a8e commit 35f6694

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

httprpc-client/src/main/java/org/httprpc/sql/ResultSetAdapter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ public void setFetchSize(int fetchSize) throws SQLException {
133133
resultSet.setFetchSize(fetchSize);
134134
}
135135

136+
/**
137+
* Returns the next result.
138+
*
139+
* @return
140+
* The next result, or <tt>null</tt> if there are no more results.
141+
*/
142+
public Map<String, Object> next() {
143+
return iterator.hasNext() ? iterator.next() : null;
144+
}
145+
136146
@Override
137147
public Iterator<Map<String, Object>> iterator() {
138148
return iterator;

0 commit comments

Comments
 (0)