Package org.springframework.batch.core

Examples of org.springframework.batch.core.StepExecution.incrementVersion()


    dao.saveStepExecution(exec1);

    StepExecution exec2 = new StepExecution(step.getName(), jobExecution);
    exec2.setId(exec1.getId());

    exec2.incrementVersion();
    assertEquals(new Integer(0), exec1.getVersion());
    assertEquals(exec1.getVersion(), exec2.getVersion());

    dao.updateStepExecution(exec1);
    assertEquals(new Integer(1), exec1.getVersion());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.