クラス SqlCountImpl

  • すべての実装されたインタフェース:
    SqlCount

    public class SqlCountImpl
    extends Object
    implements SqlCount
    SQLテンプレートによる件数のカウントを行うクエリの実装です。
    作成者:
    T.TSUCHIE
    • コンストラクタの詳細

      • SqlCountImpl

        public SqlCountImpl​(SqlMapperContext context,
                            com.github.mygreen.splate.SqlTemplate template,
                            com.github.mygreen.splate.SqlTemplateContext parameter)
    • メソッドの詳細

      • queryTimeout

        public SqlCountImpl queryTimeout​(int seconds)
        インタフェースからコピーされた説明: SqlCount
        クエリタイムアウトの秒数を設定します。

        -1 を指定するとJDBC ドライバーのデフォルト値を使用します。

        定義:
        queryTimeout インタフェース内 SqlCount
        パラメータ:
        seconds - クエリタイムアウトの秒数
        戻り値:
        自身のインスタンス。
      • getCount

        public long getCount()
        インタフェースからコピーされた説明: SqlCount
        カウント用のクエリを実行します。
        定義:
        getCount インタフェース内 SqlCount
        戻り値:
        カウント結果
      • getTemplate

        public com.github.mygreen.splate.SqlTemplate getTemplate()
        SQLテンプレートです。
      • getParameter

        public com.github.mygreen.splate.SqlTemplateContext getParameter()
        SQLテンプレートのパラメータです。
      • getQueryTimeout

        public Integer getQueryTimeout()