Class NoopDbmsLimitHandler
- java.lang.Object
-
- com.blazebit.persistence.impl.dialect.NoopDbmsLimitHandler
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.DbmsLimitHandler
public class NoopDbmsLimitHandler extends Object implements com.blazebit.persistence.spi.DbmsLimitHandler
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
-
Constructor Summary
Constructors Constructor Description NoopDbmsLimitHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplySql(StringBuilder sqlSb, boolean isSubquery, String limit, String offset)StringapplySql(String sql, boolean isSubquery, Integer limit, Integer offset)StringapplySqlInlined(String sql, boolean isSubquery, Integer limit, Integer offset)intbindLimitParametersAtEndOfQuery(Integer limit, Integer offset, PreparedStatement statement, int index)intbindLimitParametersAtStartOfQuery(Integer limit, Integer offset, PreparedStatement statement, int index)booleanlimitIncludesOffset()voidsetMaxRows(Integer limit, Integer offset, PreparedStatement statement)booleansupportsLimit()booleansupportsLimitOffset()
-
-
-
Method Detail
-
supportsLimit
public boolean supportsLimit()
- Specified by:
supportsLimitin interfacecom.blazebit.persistence.spi.DbmsLimitHandler
-
supportsLimitOffset
public boolean supportsLimitOffset()
- Specified by:
supportsLimitOffsetin interfacecom.blazebit.persistence.spi.DbmsLimitHandler
-
limitIncludesOffset
public boolean limitIncludesOffset()
- Specified by:
limitIncludesOffsetin interfacecom.blazebit.persistence.spi.DbmsLimitHandler
-
applySql
public String applySql(String sql, boolean isSubquery, Integer limit, Integer offset)
- Specified by:
applySqlin interfacecom.blazebit.persistence.spi.DbmsLimitHandler
-
applySql
public void applySql(StringBuilder sqlSb, boolean isSubquery, String limit, String offset)
- Specified by:
applySqlin interfacecom.blazebit.persistence.spi.DbmsLimitHandler
-
applySqlInlined
public String applySqlInlined(String sql, boolean isSubquery, Integer limit, Integer offset)
- Specified by:
applySqlInlinedin interfacecom.blazebit.persistence.spi.DbmsLimitHandler
-
bindLimitParametersAtStartOfQuery
public int bindLimitParametersAtStartOfQuery(Integer limit, Integer offset, PreparedStatement statement, int index) throws SQLException
- Specified by:
bindLimitParametersAtStartOfQueryin interfacecom.blazebit.persistence.spi.DbmsLimitHandler- Throws:
SQLException
-
bindLimitParametersAtEndOfQuery
public int bindLimitParametersAtEndOfQuery(Integer limit, Integer offset, PreparedStatement statement, int index) throws SQLException
- Specified by:
bindLimitParametersAtEndOfQueryin interfacecom.blazebit.persistence.spi.DbmsLimitHandler- Throws:
SQLException
-
setMaxRows
public void setMaxRows(Integer limit, Integer offset, PreparedStatement statement) throws SQLException
- Specified by:
setMaxRowsin interfacecom.blazebit.persistence.spi.DbmsLimitHandler- Throws:
SQLException
-
-