Package org.springframework.jdbc.support.incrementer

Examples of org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer.nextLongValue()


    incrementer.setCacheSize(3);
    incrementer.setPaddingLength(3);
    incrementer.afterPropertiesSet();

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

    dsControl.verify();
View Full Code Here


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

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

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

    verify(statement, times(6)).executeUpdate("insert into myseq values(null)");
    verify(statement).executeUpdate("delete from myseq where seq < 2");
    verify(statement).executeUpdate("delete from myseq where seq < 5");
    verify(resultSet, times(6)).close();
View Full Code Here

    incrementer.setPaddingLength(3);
    incrementer.setDeleteSpecificValues(true);
    incrementer.afterPropertiesSet();

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

    verify(statement, times(6)).executeUpdate("insert into myseq values(null)");
View Full Code Here

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

    verify(statement, times(6)).executeUpdate("insert into myseq values(null)");
    verify(statement).executeUpdate("delete from myseq where seq in (-1, 0, 1)");
    verify(statement).executeUpdate("delete from myseq where seq in (2, 3, 4)");
    verify(resultSet, times(6)).close();
View Full Code Here

    incrementer.setCacheSize(3);
    incrementer.setPaddingLength(3);
    incrementer.afterPropertiesSet();

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

    verify(statement, times(6)).executeUpdate("insert into myseq values(null)");
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.