Package org.jooq.util.h2

Examples of org.jooq.util.h2.H2Factory.nextval()


        throws SQLException {}

    @Override
    public void fire(Connection conn, Object[] oldRow, Object[] newRow) throws SQLException {
        H2Factory create = new H2Factory(conn);
        int maxID = create.nextval(Sequences.S_TRIGGERS_SEQUENCE).intValue();
        newRow[0] = maxID;
        newRow[1] = maxID;
        newRow[2] = maxID * 2;
    }

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.