Class SqlBuilder


  • public class SqlBuilder
    extends Object
    • Constructor Detail

      • SqlBuilder

        public SqlBuilder​(String table)
    • Method Detail

      • select

        public SqlBuilder select​(String... exprs)
        Additive! Calling multiple times will add extra select expressions to the already specified list.
      • where

        public SqlBuilder where​(String whereCondition,
                                Object... args)
        Additive! Calling multiple times will add extra conditions to the already specified list.
      • whereColAfter

        public SqlBuilder whereColAfter​(String colName,
                                        com.google.protobuf.Timestamp timestamp)
      • whereColAfterOrEqual

        public SqlBuilder whereColAfterOrEqual​(String colName,
                                               com.google.protobuf.Timestamp timestamp)
      • whereColBeforeOrEqual

        public SqlBuilder whereColBeforeOrEqual​(String colName,
                                                com.google.protobuf.Timestamp timestamp)
      • whereColBefore

        public SqlBuilder whereColBefore​(String colName,
                                         com.google.protobuf.Timestamp timestamp)
      • descend

        public SqlBuilder descend​(boolean descend)
      • limit

        public SqlBuilder limit​(long offset,
                                long limit)
      • getQueryArguments

        public List<Object> getQueryArguments()