|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SQLDialect
Specifies database specific SQL dialects. This interface can be implemented to use database specific SQL syntax for example to implement paging.
Paging
Method Summary | |
---|---|
String |
getLimitString(String sql,
boolean hasOffset)
Returns a modified SQL select statement that allows limiting the number of rows returned. |
boolean |
limitAddOffset()
Returns true if the offset needs to be added to maximum number of rows. |
boolean |
limitOffsetFirst()
Returns true if the offset parameter is in front of the maximum number of rows parameter. |
boolean |
limitParametersBeforeQueryParameters()
Returns true is the parameters to set the maximum number of rows and optionally the offset are the first parameters in the prepared select statement. |
Method Detail |
---|
String getLimitString(String sql, boolean hasOffset)
If hasOffset
is true the SQL select statement
that is returned must allow to set an offset as well as the
number of rows.
sql
- the select SQL statementhasOffset
- true is an offset should be set
Paging
,
limitParametersBeforeQueryParameters()
,
limitAddOffset()
,
limitOffsetFirst()
boolean limitParametersBeforeQueryParameters()
boolean limitAddOffset()
boolean limitOffsetFirst()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |