Class SqlSelectQuery
java.lang.Object
eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
eu.europa.esig.dss.spi.client.jdbc.query.SqlSelectQuery
A select query containing logic to extract records from a
ResultSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SqlRecord
Returns response from the givenResultSet
row positiongetRecords
(ResultSet rs) Extracts a collection ofSqlRecord
s fromResultSet
Methods inherited from class eu.europa.esig.dss.spi.client.jdbc.query.SqlQuery
createQuery, getQueryString, toString
-
Constructor Details
-
SqlSelectQuery
Default constructor- Parameters:
queryString
-String
-
-
Method Details
-
getRecord
Returns response from the givenResultSet
row position- Parameters:
rs
-ResultSet
to get records from the provided position- Returns:
SqlRecord
- Throws:
SQLException
- if an error during the SQL request occurs
-
getRecords
Extracts a collection ofSqlRecord
s fromResultSet
- Parameters:
rs
-ResultSet
result of the select query- Returns:
- collection of
SqlRecord
s - Throws:
SQLException
- if an error during the SQL request occurs
-