Uses of Interface
com.google.mu.safesql.SqlFunction
-
Uses of SqlFunction in com.google.mu.safesql
Modifier and TypeMethodDescriptionstatic <T> StringFormat.Template
<List<T>> SafeSql.prepareToQuery
(Connection connection, String template, SqlFunction<? super ResultSet, ? extends T> rowMapper) Returns a query template that will reuse the same cachedPreparedStatement
for repeated calls ofStringFormat.Template.with(java.lang.Object...)
using different parameters.<T> List
<T> SafeSql.query
(Connection connection, SqlFunction<? super ResultSet, ? extends T> rowMapper) Executes the encapsulated SQL as a query againstconnection
.