declare namespace org { namespace springframework { namespace jdbc { namespace object { /** * Reusable query in which concrete subclasses must implement the abstract * mapRow(ResultSet, int) method to convert each row of the JDBC ResultSet * into an object. *
Simplifies MappingSqlQueryWithParameters API by dropping parameters and
* context. Most subclasses won't care about parameters. If you don't use
* contextual information, subclass this instead of MappingSqlQueryWithParameters.
* @author Rod Johnson
* @author Thomas Risberg
* @author Jean-Pierre Pawlak
* @param Subclasses of this class, as opposed to direct subclasses of
* MappingSqlQueryWithParameters, don't need to concern themselves
* with the parameters to the execute method of the query object.
* @param rs the ResultSet we're working through
* @param rowNum row number (from 0) we're up to
* @return an object of the result type
* @throws SQLException if there's an error extracting data.
* Subclasses can simply not catch SQLExceptions, relying on the
* framework to clean up.
*/
// @ts-ignore
abstract mapRow(rs: java.sql.ResultSet, rowNum: number /*int*/): T
}
}
}
}
}