Package com.sun.messaging.bridge.service

Examples of com.sun.messaging.bridge.service.DupKeyException


        try {
            pstmt = conn.prepareStatement(selectCreatedTimeSQL);
            pstmt.setString(1, name);
            rs = pstmt.executeQuery();
            if (rs.next()) {
                throw new DupKeyException("Name "+name +" already exists in DB");
            }
        } catch (Exception e) {
            try {
                if ( (conn != null) && !conn.getAutoCommit() ) {
                    conn.rollback();
View Full Code Here


        try {
            pstmt = conn.prepareStatement(selectCreatedTimeSQL);
            pstmt.setString(1, xid);
            rs = pstmt.executeQuery();
            if (rs.next()) {
                throw new DupKeyException("Xid "+xid +" already exists in DB");
            }
        } catch (Exception e) {
            try {
                if ( (conn != null) && !conn.getAutoCommit() ) {
                    conn.rollback();
View Full Code Here

TOP

Related Classes of com.sun.messaging.bridge.service.DupKeyException

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.