Class SpringBatchUtility

java.lang.Object
org.mybatis.dynamic.sql.util.springbatch.SpringBatchUtility

public class SpringBatchUtility extends Object
  • Field Details

  • Method Details

    • toParameterValues

      public static Map<String,Object> toParameterValues(SelectStatementProvider selectStatement)
    • 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