Class HsqlLimitStatementBuilder
- java.lang.Object
-
- de.hybris.platform.jalo.flexiblesearch.limit.impl.HsqlLimitStatementBuilder
-
- All Implemented Interfaces:
LimitStatementBuilder
public class HsqlLimitStatementBuilder extends java.lang.Object implements LimitStatementBuilder
HSQL specific implementation for limit query with LIMIT clause.
-
-
Constructor Summary
Constructors Constructor Description HsqlLimitStatementBuilder(TranslatedQuery.ExecutableQuery originalQuery, int originalStart, int originalCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetModifiedStatement()Gets the modified version of statement for specific database implementation.java.util.List<java.lang.Object>getModifiedStatementValues()Gets the modified statement values list.intgetOriginalCount()Gets the original count value for range query requested by user.intgetOriginalStart()Gets the original start value for range query requested by user.booleanhasDbEngineLimitSupport()Returns info whether current query has support for limit queries provided by specific DB engine or not.
-
-
-
Constructor Detail
-
HsqlLimitStatementBuilder
public HsqlLimitStatementBuilder(TranslatedQuery.ExecutableQuery originalQuery, int originalStart, int originalCount)
-
-
Method Detail
-
hasDbEngineLimitSupport
public boolean hasDbEngineLimitSupport()
Description copied from interface:LimitStatementBuilderReturns info whether current query has support for limit queries provided by specific DB engine or not.- Specified by:
hasDbEngineLimitSupportin interfaceLimitStatementBuilder
-
getModifiedStatementValues
public java.util.List<java.lang.Object> getModifiedStatementValues()
Description copied from interface:LimitStatementBuilderGets the modified statement values list. Sometimes it is needed to modify existing original values and add additional values like size of page and/or start index.- Specified by:
getModifiedStatementValuesin interfaceLimitStatementBuilder- Returns:
- the modified statement values
-
getModifiedStatement
public java.lang.String getModifiedStatement()
Description copied from interface:LimitStatementBuilderGets the modified version of statement for specific database implementation.- Specified by:
getModifiedStatementin interfaceLimitStatementBuilder- Returns:
- the modified statement
-
getOriginalStart
public int getOriginalStart()
Description copied from interface:LimitStatementBuilderGets the original start value for range query requested by user.- Specified by:
getOriginalStartin interfaceLimitStatementBuilder
-
getOriginalCount
public int getOriginalCount()
Description copied from interface:LimitStatementBuilderGets the original count value for range query requested by user.- Specified by:
getOriginalCountin interfaceLimitStatementBuilder
-
-