类 JsrJobParametersConverter

  • 所有已实现的接口:
    JobParametersConverter, org.springframework.beans.factory.InitializingBean

    public class JsrJobParametersConverter
    extends java.lang.Object
    implements JobParametersConverter, org.springframework.beans.factory.InitializingBean
    Provides default conversion methodology for JSR-352's implementation. Since Spring Batch uses job parameters as a way of identifying a job instance, this converter will add an additional identifying parameter if it does not exist already in the list. The id for the identifying parameter will come from the JOB_SEQ sequence as used to generate the unique ids for BATCH_JOB_INSTANCE records.
    从以下版本开始:
    3.0
    作者:
    Michael Minella, Mahmoud Ben Hassine
    • 字段详细资料

      • incrementer

        public org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer incrementer
    • 构造器详细资料

      • JsrJobParametersConverter

        public JsrJobParametersConverter​(javax.sql.DataSource dataSource)
        Main constructor.
        参数:
        dataSource - used to gain access to the database to get unique ids.
    • 方法详细资料

      • setTablePrefix

        public void setTablePrefix​(java.lang.String tablePrefix)
        The table prefix used in the current JobRepository
        参数:
        tablePrefix - the table prefix used for the job repository tables
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception