Class MongoReadOpts

java.lang.Object
io.vertx.tp.plugin.mongo.MongoReadOpts

public class MongoReadOpts extends Object
Build FindOptions for mongo database.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.vertx.ext.mongo.FindOptions
    toAsc(String sortField)
    JqTool all records by field Asc
    static io.vertx.ext.mongo.FindOptions
    toAscLimit(String sortField, int limit)
    JqTool top n records by field ASC
    static io.vertx.ext.mongo.FindOptions
    toDesc(String sortField)
    JqTool all records by field Desc
    static io.vertx.ext.mongo.FindOptions
    toDescLimit(String sortField, int limit)
    JqTool top n records by field DESC
    static io.vertx.ext.mongo.FindOptions
    toFull(io.vertx.up.atom.query.Pager pager, io.vertx.up.atom.query.Sorter sorter)
    JqTool all records by pager/sorter both

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MongoReadOpts

      public MongoReadOpts()
  • Method Details

    • toDescLimit

      public static io.vertx.ext.mongo.FindOptions toDescLimit(String sortField, int limit)
      JqTool top n records by field DESC
      Parameters:
      sortField -
      limit -
      Returns:
    • toAscLimit

      public static io.vertx.ext.mongo.FindOptions toAscLimit(String sortField, int limit)
      JqTool top n records by field ASC
      Parameters:
      sortField -
      limit -
      Returns:
    • toDesc

      public static io.vertx.ext.mongo.FindOptions toDesc(String sortField)
      JqTool all records by field Desc
      Parameters:
      sortField -
      Returns:
    • toAsc

      public static io.vertx.ext.mongo.FindOptions toAsc(String sortField)
      JqTool all records by field Asc
      Parameters:
      sortField -
      Returns:
    • toFull

      public static io.vertx.ext.mongo.FindOptions toFull(io.vertx.up.atom.query.Pager pager, io.vertx.up.atom.query.Sorter sorter)
      JqTool all records by pager/sorter both
      Parameters:
      pager -
      sorter -
      Returns: