Class SpringBatchUtility
java.lang.Object
org.mybatis.dynamic.sql.util.springbatch.SpringBatchUtility
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionselectForCursor
(BasicColumn... selectList) Select builder that renders in a manner appropriate for the MyBatisCursorItemReader.selectForPaging
(BasicColumn... selectList) Select builder that renders in a manner appropriate for the MyBatisPagingItemReader.toParameterValues
(SelectStatementProvider selectStatement)
-
Field Details
-
PARAMETER_KEY
- See Also:
-
SPRING_BATCH_READER_RENDERING_STRATEGY
-
-
Method Details
-
toParameterValues
-
selectForPaging
public static QueryExpressionDSL.FromGatherer<SpringBatchPagingReaderSelectModel> selectForPaging(BasicColumn... selectList) Select builder that renders in a manner appropriate for the MyBatisPagingItemReader.Important rendered SQL will contain LIMIT and OFFSET clauses in the SELECT statement. If your database (Oracle) does not support LIMIT and OFFSET, the queries will fail.
- Parameters:
selectList
- a column list for the SELECT statement- Returns:
- FromGatherer used to continue a SELECT statement
-
selectForCursor
public static QueryExpressionDSL.FromGatherer<SpringBatchCursorReaderSelectModel> selectForCursor(BasicColumn... selectList) Select builder that renders in a manner appropriate for the MyBatisCursorItemReader.- Parameters:
selectList
- a column list for the SELECT statement- Returns:
- FromGatherer used to continue a SELECT statement
-