private java.util.Date getDateValue(ResultSet resultSet, int columnIndex,
      ResultSetMetaData metaData)
      throws SQLException {
    java.util.Date sqlDate;
    int columnType = metaData.getColumnType(columnIndex);
    switch (columnType) {
      case Types.DATE:
        sqlDate = resultSet.getDate(columnIndex);
        break;
      case Types.TIME:
      case Types.TIME_WITH_TIMEZONE:
        sqlDate = resultSet.getTime(columnIndex);
        break;
      default:
        sqlDate = resultSet.getTimestamp(columnIndex);
        break;
    }
    java.util.Date pdxDate = null;
    if (sqlDate != null) {
      pdxDate = new java.util.Date(sqlDate.getTime());
    }
    return pdxDate;
  }
@throws SQLException if the column value get fails
geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/SqlToPdxInstance.java