Package org.apache.agila.util

Examples of org.apache.agila.util.JDBCUtil.generateKey()


    public void testGenerateKey() {
        JDBCUtil jdbcUtil = JDBCUtil.getInstance();

        int nextKey = 0;
        int previousKey = jdbcUtil.generateKey();

        for( int i = 0; i < 10; i++ ) {
            nextKey = jdbcUtil.generateKey();

            assertTrue( (previousKey + 1) == nextKey );
View Full Code Here


        int nextKey = 0;
        int previousKey = jdbcUtil.generateKey();

        for( int i = 0; i < 10; i++ ) {
            nextKey = jdbcUtil.generateKey();

            assertTrue( (previousKey + 1) == nextKey );

            previousKey = nextKey;
        }
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.