|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.item.database.support.SqlPagingQueryUtils
public class SqlPagingQueryUtils
Utility class that generates the actual SQL statements used by query providers.
Constructor Summary | |
---|---|
SqlPagingQueryUtils()
|
Method Summary | |
---|---|
static String |
generateLimitJumpToQuery(AbstractSqlPagingQueryProvider provider,
String limitClause)
Generate SQL query string using a LIMIT clause |
static String |
generateLimitSqlQuery(AbstractSqlPagingQueryProvider provider,
boolean remainingPageQuery,
String limitClause)
Generate SQL query string using a LIMIT clause |
static String |
generateRowNumSqlQuery(AbstractSqlPagingQueryProvider provider,
boolean remainingPageQuery,
String rowNumClause)
Generate SQL query string using a ROW_NUM condition |
static String |
generateRowNumSqlQuery(AbstractSqlPagingQueryProvider provider,
String selectClause,
boolean remainingPageQuery,
String rowNumClause)
Generate SQL query string using a ROW_NUM condition |
static String |
generateRowNumSqlQueryWithNesting(AbstractSqlPagingQueryProvider provider,
String selectClause,
boolean remainingPageQuery,
String rowNumClause)
|
static String |
generateRowNumSqlQueryWithNesting(AbstractSqlPagingQueryProvider provider,
String innerSelectClause,
String outerSelectClause,
boolean remainingPageQuery,
String rowNumClause)
|
static String |
generateTopJumpToQuery(AbstractSqlPagingQueryProvider provider,
String topClause)
Generate SQL query string using a TOP clause |
static String |
generateTopSqlQuery(AbstractSqlPagingQueryProvider provider,
boolean remainingPageQuery,
String topClause)
Generate SQL query string using a TOP clause |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlPagingQueryUtils()
Method Detail |
---|
public static String generateLimitSqlQuery(AbstractSqlPagingQueryProvider provider, boolean remainingPageQuery, String limitClause)
provider
- AbstractSqlPagingQueryProvider
providing the
implementation specificsremainingPageQuery
- is this query for the ramining pages (true) as
opposed to the first page (false)limitClause
- the implementation specific limit clause to be used
public static String generateTopSqlQuery(AbstractSqlPagingQueryProvider provider, boolean remainingPageQuery, String topClause)
provider
- AbstractSqlPagingQueryProvider
providing the
implementation specificsremainingPageQuery
- is this query for the ramining pages (true) as
opposed to the first page (false)topClause
- the implementation specific top clause to be used
public static String generateRowNumSqlQuery(AbstractSqlPagingQueryProvider provider, boolean remainingPageQuery, String rowNumClause)
provider
- AbstractSqlPagingQueryProvider
providing the
implementation specificsremainingPageQuery
- is this query for the remaining pages (true) as
opposed to the first page (false)rowNumClause
- the implementation specific row num clause to be used
public static String generateRowNumSqlQuery(AbstractSqlPagingQueryProvider provider, String selectClause, boolean remainingPageQuery, String rowNumClause)
provider
- AbstractSqlPagingQueryProvider
providing the
implementation specificsremainingPageQuery
- is this query for the remaining pages (true) as
opposed to the first page (false)rowNumClause
- the implementation specific row num clause to be used
public static String generateRowNumSqlQueryWithNesting(AbstractSqlPagingQueryProvider provider, String selectClause, boolean remainingPageQuery, String rowNumClause)
public static String generateRowNumSqlQueryWithNesting(AbstractSqlPagingQueryProvider provider, String innerSelectClause, String outerSelectClause, boolean remainingPageQuery, String rowNumClause)
public static String generateLimitJumpToQuery(AbstractSqlPagingQueryProvider provider, String limitClause)
provider
- AbstractSqlPagingQueryProvider
providing the
implementation specificslimitClause
- the implementation specific top clause to be used
public static String generateTopJumpToQuery(AbstractSqlPagingQueryProvider provider, String topClause)
provider
- AbstractSqlPagingQueryProvider
providing the
implementation specificstopClause
- the implementation specific top clause to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |