Package overit.geocall.sql
Class DBCursor
java.lang.Object
overit.geocall.sql.DBCursor
- All Implemented Interfaces:
AutoCloseable
A cursor over a
ResultSet-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rs
-
dbs
-
-
Constructor Details
-
DBCursor
contruct a cursor over the statement parameter- Parameters:
dbs- the statement providing the cursor- Throws:
SQLException- in case of an sql error
-
-
Method Details
-
getCursor
retrieves the cursor, i.e. aResultSet- Returns:
- the cursor, i.e. a
ResultSet
-
getRowMap
reads all ther record in the current cursor position, transforming it into a map followinf the dbstatement definitions naming- Returns:
- a Map containing a record in the current cursor position
- Throws:
SQLException- in the case of an sql error
-
close
closes the underlying ResultSet- Specified by:
closein interfaceAutoCloseable- Throws:
SQLException- in the case of an sql error
-