Annotation Type MongoFindQuery


  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    @Inherited
    public @interface MongoFindQuery
    Defines a custom MongoDB query for finding results.
    Since:
    3.3.0
    Author:
    Denis Stepanov
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String collation
      The custom collation represented in JSON.
      java.lang.String filter
      The custom MongoDB filter query.
      java.lang.String project
      The custom fields projections represented in JSON.
      java.lang.String sort
      The custom sorting represented in JSON.
      java.lang.String value
      The custom MongoDB filter query.
    • Element Detail

      • value

        @AliasFor(member="value",
                  annotation=MongoFilter.class)
        java.lang.String value
        The custom MongoDB filter query.
        Returns:
        The query
        Default:
        ""
      • filter

        @AliasFor(member="value",
                  annotation=MongoFilter.class)
        java.lang.String filter
        The custom MongoDB filter query.
        Returns:
        The query
        Default:
        ""
      • sort

        @AliasFor(member="value",
                  annotation=MongoSort.class)
        java.lang.String sort
        The custom sorting represented in JSON.
        Returns:
        The sort
        Default:
        ""
      • project

        @AliasFor(member="value",
                  annotation=MongoProjection.class)
        java.lang.String project
        The custom fields projections represented in JSON.
        Returns:
        The fields
        Default:
        ""
      • collation

        @AliasFor(member="value",
                  annotation=MongoCollation.class)
        java.lang.String collation
        The custom collation represented in JSON.
        Returns:
        The collation
        Default:
        ""