public final class SQL extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Seq |
seq(PreparedStatement
Deprecated.
Obtain a stream from a JDBC
ResultSet that is obtained from a
PreparedStatement with a row mapping function.
|
static <T> Seq |
seq(PreparedStatement
Deprecated.
Obtain a stream from a JDBC
ResultSet that is obtained from a
PreparedStatement with a row mapping function.
|
static <T> Seq |
seq(ResultSet
Deprecated.
Obtain a stream from a JDBC
ResultSet with a row mapping function.
|
static <T> Seq |
seq(ResultSet
Deprecated.
Obtain a stream from a JDBC
ResultSet with a row mapping function.
|
static <T> Seq |
seq(Supplier
Deprecated.
|
static <T> Seq |
seq(Supplier
Deprecated.
|
public static <T> Seq<T> seq(PreparedStatement stmt, Function <ResultSet ,T> rowFunction)
ResultSet that is obtained from a
PreparedStatement with a row mapping function.
Clients are responsible themselves for closing the ResultSet.
T - The custom type.
stmt - The JDBC
PreparedStatement that generates a
ResultSet to be wrapped in a
Stream
rowFunction - The row mapping function that maps
ResultSet rows to a custom type.
Stream wrapping the
ResultSet
public static <T> Seq<T> seq(PreparedStatement stmt, Function <ResultSet ,T> rowFunction, Consumer <? super SQLException > exceptionTranslator)
ResultSet that is obtained from a
PreparedStatement with a row mapping function.
Clients are responsible themselves for closing the ResultSet.
T - The custom type.
stmt - The JDBC
PreparedStatement that generates a
ResultSet to be wrapped in a
Stream
rowFunction - The row mapping function that maps
ResultSet rows to a custom type.
exceptionTranslator - A custom exception translator.
Stream wrapping the
ResultSet
public static <T> Seq<T> seq(ResultSet rs, Function <ResultSet ,T> rowFunction)
ResultSet with a row mapping function.
Clients are responsible themselves for closing the ResultSet.
T - The custom type.
rs - The JDBC
ResultSet to wrap in a
Stream
rowFunction - The row mapping function that maps
ResultSet rows to a custom type.
Stream wrapping the
ResultSet
public static <T> Seq<T> seq(ResultSet rs, Function <ResultSet ,T> rowFunction, Consumer <? super SQLException > exceptionTranslator)
ResultSet with a row mapping function.
Clients are responsible themselves for closing the ResultSet.
T - The custom type.
rs - The JDBC
ResultSet to wrap in a
Stream
rowFunction - The row mapping function that maps
ResultSet rows to a custom type.
exceptionTranslator - A custom exception translator.
Stream wrapping the
ResultSet
public static <T> Seq<T> seq(Supplier <? extends ResultSet > supplier, Function <ResultSet ,T> rowFunction)
ResultSet
Supplier with a row mapping function.
Clients are responsible themselves for closing the ResultSet.
T - The custom type.
supplier - The JDBC
ResultSet
Supplier to wrap in a
Stream
rowFunction - The row mapping function that maps
ResultSet rows to a custom type.
Stream wrapping the
ResultSet
public static <T> Seq<T> seq(Supplier <? extends ResultSet > supplier, Function <ResultSet ,T> rowFunction, Consumer <? super SQLException > exceptionTranslator)
ResultSet
Supplier with a row mapping function.
Clients are responsible themselves for closing the ResultSet.
T - The custom type.
supplier - The JDBC
ResultSet
Supplier to wrap in a
Stream
rowFunction - The row mapping function that maps
ResultSet rows to a custom type.
exceptionTranslator - A custom exception translator.
Stream wrapping the
ResultSet