View Javadoc
1   /*
2    * Copyright 2012-2025 CodeLibs Project and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.codelibs.fess.opensearch.config.allcommon;
17  
18  import org.dbflute.cbean.sqlclause.AbstractSqlClause;
19  import org.dbflute.dbway.DBWay;
20  
21  /**
22   * @author ESFlute (using FreeGen)
23   */
24  public class EsSqlClause extends AbstractSqlClause {
25  
26      private static final long serialVersionUID = 1L;
27  
28      public EsSqlClause(String tableDbName) {
29          super(tableDbName);
30      }
31  
32      @Override
33      public void lockForUpdate() {
34      }
35  
36      @Override
37      public DBWay dbway() {
38          return null;
39      }
40  
41      @Override
42      protected void doFetchFirst() {
43      }
44  
45      @Override
46      protected void doFetchPage() {
47      }
48  
49      @Override
50      protected void doClearFetchPageClause() {
51      }
52  
53      @Override
54      protected String createSelectHint() {
55          return null;
56      }
57  
58      @Override
59      protected String createFromBaseTableHint() {
60          return null;
61      }
62  
63      @Override
64      protected String createFromHint() {
65          return null;
66      }
67  
68      @Override
69      protected String createSqlSuffix() {
70          return null;
71      }
72  
73      @Override
74      public void fetchFirst(int fetchSize) {
75          _fetchScopeEffective = true;
76          if (fetchSize < 0) {
77              String msg = "Argument[fetchSize] should be plus: " + fetchSize;
78              throw new IllegalArgumentException(msg);
79          }
80          _fetchStartIndex = 0;
81          _fetchSize = fetchSize;
82          _fetchPageNumber = 1;
83          doClearFetchPageClause();
84          doFetchFirst();
85      }
86  }