@@ -241,8 +241,8 @@ public static Map<String, String> getVariableTypes(String sqlQuery) {
241
241
public static JsonObjectBuilder getColumnDataByType (ResultSet rs , ResultSetMetaData metaData ,
242
242
int i , JsonObjectBuilder row ) {
243
243
try {
244
- final String columnName = metaData .getColumnName (i );
245
- if (null == rs .getObject (columnName )){
244
+ final String columnName = metaData .getColumnName (i );
245
+ if (null == rs .getObject (columnName )) {
246
246
row .add (columnName , JsonValue .NULL );
247
247
return row ;
248
248
}
@@ -262,7 +262,7 @@ public static JsonObjectBuilder getColumnDataByType(ResultSet rs, ResultSetMetaD
262
262
break ;
263
263
case Types .NUMERIC :
264
264
case Types .DECIMAL :
265
- row .add (columnName , (rs .getBigDecimal (columnName )!= null ));
265
+ row .add (columnName , (rs .getBigDecimal (columnName ) != null ));
266
266
break ;
267
267
case Types .DOUBLE :
268
268
row .add (columnName , rs .getDouble (columnName ));
@@ -328,8 +328,9 @@ public static JsonObject getLookupRow(Connection connection, JsonObject body, St
328
328
}
329
329
}
330
330
331
- public static boolean isRecordExists (Connection connection , JsonObject body , String sql , String lookupField ) throws SQLException {
332
- try (PreparedStatement stmt = connection .prepareStatement (sql )){
331
+ public static boolean isRecordExists (Connection connection , JsonObject body , String sql ,
332
+ String lookupField ) throws SQLException {
333
+ try (PreparedStatement stmt = connection .prepareStatement (sql )) {
333
334
Utils .setStatementParam (stmt , 1 , lookupField , body );
334
335
try (ResultSet rs = stmt .executeQuery ()) {
335
336
rs .next ();
0 commit comments