Ejemplo n.º 1
0
  @Override
  public Time getTime(Calendar cal) throws SQLException {
    Time time;

    if (jsonObject == null) return null;

    try {
      time = timestampUtils.parseTime((String) jsonObject);
    } catch (Exception ex) {
      throw new SQLException("value " + jsonObject + " is not a Time", ex);
    }

    if (cal != null) {
      time = timestampUtils.applyCalendar(cal, time);
    }
    return time;
  }