@Override public void setTimestamp(Timestamp val, Calendar cal) throws SQLException { field = new Field(null, "string"); if (val == null) { jsonObject = null; isNull = true; } else { if (cal != null) { cal = (Calendar) cal.clone(); } jsonObject = timestampUtils.toString(cal, val); } }