Format
This commit is contained in:
@@ -57,8 +57,7 @@ public class SqlExecutor {
|
||||
return resultBuilder.build();
|
||||
}
|
||||
|
||||
public static QueryResult executeJsonQuery(Connection conn, String json)
|
||||
throws SQLException, JsonParseException, JsonMappingException, IOException {
|
||||
public static QueryResult executeJsonQuery(Connection conn, String json) throws SQLException, JsonParseException, JsonMappingException, IOException {
|
||||
log.debug("Parsing JSON: " + json);
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
@@ -94,8 +93,7 @@ public class SqlExecutor {
|
||||
stmt.setLong(parameterIndex, (Long) object);
|
||||
} else {
|
||||
stmt.setString(parameterIndex, (String) object);
|
||||
String message = String.format("Unhandled paramter type <%s>. Defaulting to String",
|
||||
object.getClass().getName());
|
||||
String message = String.format("Unhandled paramter type <%s>. Defaulting to String", object.getClass().getName());
|
||||
log.warn(message);
|
||||
}
|
||||
} else {
|
||||
@@ -175,8 +173,7 @@ public class SqlExecutor {
|
||||
return columnDefinitions;
|
||||
}
|
||||
|
||||
private static void handleUserErrors(Connection conn, String sql, Statement stmt)
|
||||
throws SQLException, SqlExecutionException {
|
||||
private static void handleUserErrors(Connection conn, String sql, Statement stmt) throws SQLException, SqlExecutionException {
|
||||
SQLWarning warnings = stmt.getWarnings();
|
||||
List<UserError> userErrors = new Vector<UserError>();
|
||||
if (warnings != null) {
|
||||
|
Reference in New Issue
Block a user