All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.index.change.ChangeSchemaDefinitions Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc4
Show newest version
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.gerrit.server.index.change;

import static com.google.gerrit.server.index.SchemaUtil.schema;

import com.google.gerrit.server.index.Schema;
import com.google.gerrit.server.index.SchemaDefinitions;
import com.google.gerrit.server.query.change.ChangeData;

public class ChangeSchemaDefinitions extends SchemaDefinitions {
  @Deprecated
  static final Schema V32 =
      schema(
          ChangeField.LEGACY_ID,
          ChangeField.ID,
          ChangeField.STATUS,
          ChangeField.PROJECT,
          ChangeField.PROJECTS,
          ChangeField.REF,
          ChangeField.EXACT_TOPIC,
          ChangeField.FUZZY_TOPIC,
          ChangeField.UPDATED,
          ChangeField.FILE_PART,
          ChangeField.PATH,
          ChangeField.OWNER,
          ChangeField.COMMIT,
          ChangeField.TR,
          ChangeField.LABEL,
          ChangeField.COMMIT_MESSAGE,
          ChangeField.COMMENT,
          ChangeField.CHANGE,
          ChangeField.APPROVAL,
          ChangeField.MERGEABLE,
          ChangeField.ADDED,
          ChangeField.DELETED,
          ChangeField.DELTA,
          ChangeField.HASHTAG,
          ChangeField.COMMENTBY,
          ChangeField.PATCH_SET,
          ChangeField.GROUP,
          ChangeField.SUBMISSIONID,
          ChangeField.EDITBY,
          ChangeField.REVIEWEDBY,
          ChangeField.EXACT_COMMIT,
          ChangeField.AUTHOR,
          ChangeField.COMMITTER,
          ChangeField.DRAFTBY,
          ChangeField.HASHTAG_CASE_AWARE,
          ChangeField.STAR,
          ChangeField.STARBY,
          ChangeField.REVIEWER);

  @Deprecated static final Schema V33 = schema(V32, ChangeField.ASSIGNEE);

  @Deprecated
  static final Schema V34 =
      new Schema.Builder()
          .add(V33)
          .remove(ChangeField.LABEL)
          .add(ChangeField.LABEL2)
          .build();

  @Deprecated
  static final Schema V35 =
      schema(
          V34,
          ChangeField.SUBMIT_RECORD,
          ChangeField.STORED_SUBMIT_RECORD_LENIENT,
          ChangeField.STORED_SUBMIT_RECORD_STRICT);

  @Deprecated
  static final Schema V36 =
      schema(V35, ChangeField.REF_STATE, ChangeField.REF_STATE_PATTERN);

  @Deprecated static final Schema V37 = schema(V36);

  @Deprecated
  static final Schema V38 = schema(V37, ChangeField.UNRESOLVED_COMMENT_COUNT);

  static final Schema V39 = schema(V38);

  public static final String NAME = "changes";
  public static final ChangeSchemaDefinitions INSTANCE = new ChangeSchemaDefinitions();

  private ChangeSchemaDefinitions() {
    super(NAME, ChangeData.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy