code: private void setParameter(PreparedStatement preparedStatement, int param, Object value) throws SQLException {
  		if (value instanceof Enum<?>) {
  			Enum<?> e = (Enum<?>) value;
  			value = e.ordinal();
  		} else if (value instanceof LocalDate) {
  			value = java.sql.Date.valueOf((LocalDate) value);
  		} else if (value instanceof LocalTime) {
  			value = java.sql.Time.valueOf((LocalTime) value);
  		} else if (value instanceof LocalDateTime) {
  			value = java.sql.Timestamp.valueOf((LocalDateTime) value);
  		}
  		preparedStatement.setObject(param, value);
  	}
docs: /*
  TODO: should be merged with the setParameter in AbstractTable.