Package cc.concurrent.mango.jdbc

Examples of cc.concurrent.mango.jdbc.GeneratedKeyHolder


    private Number executeDb(DataSource ds, String sql, Object[] args) {
        Number r = null;
        long now = System.nanoTime();
        try {
            if (returnGeneratedId) {
                GeneratedKeyHolder holder = new GeneratedKeyHolder(returnType);
                jdbcTemplate.update(ds, sql, args, holder);
                r = holder.getKey();
            } else {
                r = jdbcTemplate.update(ds, sql, args);
            }
        } finally {
            long cost = System.nanoTime() - now;
View Full Code Here


    private Number executeDb(String sql, Object[] args) {
        Number r = null;
        long now = System.nanoTime();
        try {
            if (returnGeneratedId) {
                GeneratedKeyHolder holder = new GeneratedKeyHolder(returnType);
                jdbcTemplate.update(getDataSource(), sql, args, holder);
                r = holder.getKey();
            } else {
                r = jdbcTemplate.update(getDataSource(), sql, args);
            }
        } finally {
            long cost = System.nanoTime() - now;
View Full Code Here

    private Number executeDb(String sql, Object[] args) {
        Number r = null;
        long now = System.nanoTime();
        try {
            if (returnGeneratedId) {
                GeneratedKeyHolder holder = new GeneratedKeyHolder(returnType);
                jdbcTemplate.update(getDataSource(), sql, args, holder);
                r = holder.getKey();
            } else {
                r = jdbcTemplate.update(getDataSource(), sql, args);
            }
        } finally {
            long cost = System.nanoTime() - now;
View Full Code Here

TOP

Related Classes of cc.concurrent.mango.jdbc.GeneratedKeyHolder

Copyright © 2018 www.massapicom. 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.