@Authors(value="Nikolche Mihajlovski")
@Since(value="5.3.0")
public class JdbcUtil
extends org.rapidoid.RapidoidThing
| Constructor and Description |
|---|
JdbcUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(PreparedStatement stmt,
Object[] args) |
static PreparedStatement |
prepare(Connection conn,
String sql,
Map<String,?> namedArgs,
Object[] args) |
static Map<String,Object> |
row(ResultSet rs) |
static <T> List<T> |
rows(Class<T> resultType,
ResultSet rs) |
static <T> List<T> |
rows(org.rapidoid.lambda.Mapper<ResultSet,T> resultMapper,
ResultSet rs) |
static List<Map<String,Object>> |
rows(ResultSet rs) |
public static PreparedStatement prepare(Connection conn, String sql, Map<String,?> namedArgs, Object[] args)
public static void bind(PreparedStatement stmt, Object[] args) throws SQLException
SQLExceptionpublic static <T> List<T> rows(org.rapidoid.lambda.Mapper<ResultSet,T> resultMapper, ResultSet rs) throws Exception
Exceptionpublic static <T> List<T> rows(Class<T> resultType, ResultSet rs) throws Exception
Exceptionpublic static List<Map<String,Object>> rows(ResultSet rs) throws SQLException
SQLExceptionpublic static Map<String,Object> row(ResultSet rs) throws SQLException
SQLExceptionCopyright © 2014–2018 Nikolche Mihajlovski and contributors. All rights reserved.