Class QuestionnaireRepository.Indexer

java.lang.Object
org.immutables.mongo.repository.Repositories.Indexer<Questionnaire,QuestionnaireRepository.Indexer>
io.dialob.api.questionnaire.QuestionnaireRepository.Indexer
Enclosing class:
QuestionnaireRepository

@NotThreadSafe public static final class QuestionnaireRepository.Indexer extends org.immutables.mongo.repository.Repositories.Indexer<Questionnaire,QuestionnaireRepository.Indexer>
An indexer used to create an index on the "questionnaires" collection if it does not exist by one or more attributes.
See Also:
  • DBCollection.createIndex(DBObject, DBObject)
  • Field Details

    • repository

      protected final org.immutables.mongo.repository.Repositories.Repository<Questionnaire> repository
  • Method Details

    • withId

      Specify that the next attribute to index will be id, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withIdDesceding

      public QuestionnaireRepository.Indexer withIdDesceding()
      Specify that the next attribute to index will be id, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withRev

      Specify that the next attribute to index will be rev, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withRevDesceding

      public QuestionnaireRepository.Indexer withRevDesceding()
      Specify that the next attribute to index will be rev, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withAnswers

      public QuestionnaireRepository.Indexer withAnswers()
      Specify that the next attribute to index will be answers, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withAnswersDesceding

      public QuestionnaireRepository.Indexer withAnswersDesceding()
      Specify that the next attribute to index will be answers, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withContext

      public QuestionnaireRepository.Indexer withContext()
      Specify that the next attribute to index will be context, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withContextDesceding

      public QuestionnaireRepository.Indexer withContextDesceding()
      Specify that the next attribute to index will be context, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withActiveItem

      public QuestionnaireRepository.Indexer withActiveItem()
      Specify that the next attribute to index will be activeItem, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withActiveItemDesceding

      public QuestionnaireRepository.Indexer withActiveItemDesceding()
      Specify that the next attribute to index will be activeItem, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withErrors

      public QuestionnaireRepository.Indexer withErrors()
      Specify that the next attribute to index will be errors, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withErrorsDesceding

      public QuestionnaireRepository.Indexer withErrorsDesceding()
      Specify that the next attribute to index will be errors, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withVariableValues

      public QuestionnaireRepository.Indexer withVariableValues()
      Specify that the next attribute to index will be variableValues, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withVariableValuesDesceding

      public QuestionnaireRepository.Indexer withVariableValuesDesceding()
      Specify that the next attribute to index will be variableValues, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withValueSets

      public QuestionnaireRepository.Indexer withValueSets()
      Specify that the next attribute to index will be valueSets, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withValueSetsDesceding

      public QuestionnaireRepository.Indexer withValueSetsDesceding()
      Specify that the next attribute to index will be valueSets, in the descending direction.
      Returns:
      this indexer for use in a chained invocation
    • withMetadata

      public QuestionnaireRepository.Indexer withMetadata()
      Specify that the next attribute to index will be metadata, in the ascending direction.
      Returns:
      this indexer for use in a chained invocation
    • withMetadataDesceding

      public QuestionnaireRepository.Indexer withMetadataDesceding()
      Specify that the next attribute to index will be metadata, in the descending direction.
      Returns:
      this indexer for use in a chained invocation