类 FilterableStatement<STMT_T,​RES_T>

    • 字段详细资料

    • 构造器详细资料

      • FilterableStatement

        public FilterableStatement​(FilterParams filterParams)
        Constructor.
        参数:
        filterParams - FilterParams object.
    • 方法详细资料

      • where

        public STMT_T where​(String searchCondition)
        Add search condition to this statement.
         table.delete().where("age == 13").execute();
         
        参数:
        searchCondition - expression
        返回:
        this statement
      • sort

        public STMT_T sort​(String... sortFields)
        Add sort expressions to this statement. Synonym to orderBy(String...).
         DocResult docs = this.collection.find().orderBy("$._id").execute();
         docs = this.collection.find().sort("$.x", "$.y").execute();
         
        参数:
        sortFields - sort expressions
        返回:
        this statement
      • orderBy

        public STMT_T orderBy​(String... sortFields)
        Add sort expressions to this statement.
         DocResult docs = this.collection.find().orderBy("$._id").execute();
         docs = this.collection.find().sort("$.x", "$.y").execute();
         
        参数:
        sortFields - sort expressions
        返回:
        this statement
      • limit

        public STMT_T limit​(long numberOfRows)
        Add row limit to this statement.

        For example, to find only 3 rows:

         docs = this.collection.find().orderBy("$._id").limit(3).execute();
         
        参数:
        numberOfRows - maximum rows to process
        返回:
        this statement
      • offset

        public STMT_T offset​(long limitOffset)
        Add maximum number of rows to skip before find others.

        For example, to skip 2 rows:

         docs = this.collection.find().orderBy("$._id").offset(2).execute();
         
        参数:
        limitOffset - number of rows to skip
        返回:
        this statement
      • isRelational

        public boolean isRelational()
        Are relational columns identifiers allowed in this statement?
        返回:
        true if allowed
      • bind

        public STMT_T bind​(String argName,
                           Object value)
        从接口复制的说明: Statement
        Bind the named argument to the given value.
        指定者:
        bind 在接口中 Statement<STMT_T,​RES_T>
        参数:
        argName - argument name
        value - object to bind
        返回:
        this statement