public class SQLQueryUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLQueryUtils.IntegerExtractor |
static interface |
SQLQueryUtils.ResultSetExtractor<T> |
static class |
SQLQueryUtils.TimestampExtractor |
| Constructor and Description |
|---|
SQLQueryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
executeCountOnQuery(SQLQuery query,
Statement stmt) |
static Timestamp |
executeSingleDateQuery(String sql,
Statement stmt) |
static int |
executeSingleIntQuery(String sql,
Statement stmt) |
static SQLQuery |
extractCountingQuery(SQLQuery query) |
static SQLQuery |
refineLimitQuery(int maximum,
SQLQuery query) |
public static int executeCountOnQuery(SQLQuery query, Statement stmt) throws SQLException
SQLExceptionpublic static int executeSingleIntQuery(String sql, Statement stmt) throws SQLException
SQLExceptionpublic static Timestamp executeSingleDateQuery(String sql, Statement stmt) throws SQLException
SQLExceptionCopyright © 2021. All rights reserved.