Package cc.concurrent.mango.exception

Examples of cc.concurrent.mango.exception.GeneratedKeysException


                return r;
            }
            // 生成自增id
            rs = ps.getGeneratedKeys();
            if (!rs.next()) {
                throw new GeneratedKeysException("please check whether the table has auto increment key");
            }
            return rs.getInt(1);
        } catch (SQLException e) {
            throw new UncheckedSQLException(e.getMessage(), e);
        } finally {
View Full Code Here

TOP

Related Classes of cc.concurrent.mango.exception.GeneratedKeysException

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.