Examples of nextIntValue()


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

    incrementer.setColumnName("seq");
    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());
View Full Code Here

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

    incrementer.afterPropertiesSet();

    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();
View Full Code Here

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

    incrementer.setCacheSize(3);
    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());
View Full Code Here

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

    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)");
    verify(statement).executeUpdate("delete from myseq where seq in (-1, 0, 1)");
    verify(statement).executeUpdate("delete from myseq where seq in (2, 3, 4)");
View Full Code Here

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

    incrementer.setColumnName("seq");
    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());
View Full Code Here

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

    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)");
    verify(statement).executeUpdate("delete from myseq where seq < 2");
    verify(statement).executeUpdate("delete from myseq where seq < 5");
View Full Code Here

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

    incrementer.setColumnName("seq");
    incrementer.setCacheSize(2);
    incrementer.setPaddingLength(1);
    incrementer.afterPropertiesSet();

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

    dsControl.verify();
View Full Code Here

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

    incrementer.setColumnName("seq");
    incrementer.setCacheSize(2);
    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)");
View Full Code Here

Examples of org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer.nextIntValue()

    incrementer.setIncrementerName("myseq");
    incrementer.setPaddingLength(5);
    incrementer.afterPropertiesSet();

    assertEquals("00010", incrementer.nextStringValue());
    assertEquals(12, incrementer.nextIntValue());

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

Examples of org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer.nextIntValue()

    incrementer.setIncrementerName("myseq");
    incrementer.setPaddingLength(5);
    incrementer.afterPropertiesSet();

    assertEquals("00010", incrementer.nextStringValue());
    assertEquals(12, incrementer.nextIntValue());

    verify(resultSet, times(2)).close();
    verify(statement, times(2)).close();
    verify(connection, 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.