code: @Override
      public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
          int oneBasedIndex = 1;
          if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
          DateField startDateField = (DateField) Table.CALENDAR.getFieldForName("start_date");
          DateField endDateField = ((DateField) Table.CALENDAR.getFieldForName("end_date"));
          statement.setString(oneBasedIndex++, service_id);
          setIntParameter(statement, oneBasedIndex++, monday);
          setIntParameter(statement, oneBasedIndex++, tuesday);
          setIntParameter(statement, oneBasedIndex++, wednesday);
          setIntParameter(statement, oneBasedIndex++, thursday);
          setIntParameter(statement, oneBasedIndex++, friday);
          setIntParameter(statement, oneBasedIndex++, saturday);
          setIntParameter(statement, oneBasedIndex++, sunday);
          startDateField.setParameter(statement, oneBasedIndex++, start_date);
          endDateField.setParameter(statement, oneBasedIndex++, end_date);
          statement.setString(oneBasedIndex++, null); // description
      }
docs: Sets the parameters for a prepared statement following the parameter order defined in
  {@link com.conveyal.gtfs.loader.Table#CALENDAR}. JDBC prepared statement parameters use a one-based index.