Package org.springframework.jdbc.support.incrementer

Examples of org.springframework.jdbc.support.incrementer.MySQLMaxValueIncrementer.nextStringValue()


    incrementer.setPaddingLength(1);
    incrementer.afterPropertiesSet();

    assertEquals(1, incrementer.nextIntValue());
    assertEquals(2, incrementer.nextLongValue());
    assertEquals("3", incrementer.nextStringValue());
    assertEquals(4, incrementer.nextLongValue());

    dsControl.verify();
    conControl.verify();
    stmtControl.verify();
View Full Code Here


    incrementer.setPaddingLength(1);
    incrementer.afterPropertiesSet();

    assertEquals(1, incrementer.nextIntValue());
    assertEquals(2, incrementer.nextLongValue());
    assertEquals("3", incrementer.nextStringValue());
    assertEquals(4, incrementer.nextLongValue());

    verify(statement, times(2)).executeUpdate("update myseq set seq = last_insert_id(seq + 2)");
    verify(resultSet, times(2)).close();
    verify(statement, times(2)).close();
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.