Package com.sun.messaging.bridge.service

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


                pstmt.setString(5, dbMgr.getBrokerID());
            }

            if (pstmt.executeUpdate() == 0) {
                Util.checkBeingTakenOver(conn, dbMgr, logger, logger_);
                throw new KeyNotFoundException(
                "Name "+name+" not found in store");
            }

        } catch ( Exception e ) {
            myex = e;
View Full Code Here


            pstmt = conn.prepareStatement(deleteSQL);
            pstmt.setString(1, name);
            pstmt.setString(2, dbMgr.getBrokerID());
            if (pstmt.executeUpdate() == 0) {
                throw new KeyNotFoundException("Name "+name+" not found in store ");
            }
        } catch (Exception e) {
            myex = e;
            try {
                if ((conn != null) && !conn.getAutoCommit()) {
View Full Code Here

            pstmt = conn.prepareStatement(selectBrokerIdSQL);
            pstmt.setString(1, name);
            rs = pstmt.executeQuery();
            if (!rs.next()) {
                throw new KeyNotFoundException(
                "Name "+name+" not found in store");
            }
            brokerId = rs.getString(1);
        } catch ( Exception e ) {
            myex = e;
View Full Code Here

            pstmt = conn.prepareStatement(selectUpdatedTimeSQL);
            pstmt.setString(1, name);
            rs = pstmt.executeQuery();
            if (!rs.next()) {
                throw new KeyNotFoundException("Name "+name+" not found in store");
            }
            updatedTime = rs.getLong(1);
        } catch ( Exception e ) {
            myex = e;
            try {
View Full Code Here

            pstmt = conn.prepareStatement(selectCreatedTimeSQL);
            pstmt.setString(1, name);
            rs = pstmt.executeQuery();
            if (!rs.next()) {
                throw new KeyNotFoundException(
                "Name "+name+" not found in store");
            }
            createdTime = rs.getLong(1);
         } catch (Exception e) {
             myex = e;
View Full Code Here

            if (currLogRecord == null) {
                if (addIfNotExist) {
                    insert(conn, xid, logRecord, name, logger_);
                    return;
                }
                throw new KeyNotFoundException("TM log record not found for "+xid);
            }
            byte[] newLogRecord = (byte[])callback.update(currLogRecord);

            pstmt = conn.prepareStatement(updateLogRecordSQL);
            pstmt.setBytes(1, newLogRecord);
View Full Code Here

            pstmt = conn.prepareStatement(deleteSQL);
            pstmt.setString(1, xid);
            pstmt.setString(2, dbMgr.getBrokerID());
            if (pstmt.executeUpdate() == 0) {
                throw new KeyNotFoundException(
                "TM log record not found in store for "+xid);
            }
        } catch (Exception e) {
            myex = e;
            try {
View Full Code Here

            pstmt = conn.prepareStatement(selectUpdatedTimeSQL);
            pstmt.setString(1, xid );
            rs = pstmt.executeQuery();
            if (!rs.next()) {
                throw new KeyNotFoundException(
                "TM Log record not found in store for xid "+xid);
            }
            updatedTime = rs.getLong(1);
        } catch ( Exception e ) {
            myex = e;
View Full Code Here

            pstmt = conn.prepareStatement(selectCreatedTimeSQL);
            pstmt.setString(1, xid );
            rs = pstmt.executeQuery();
            if (!rs.next()) {
                throw new KeyNotFoundException(
                "TM Log record not found in store for xid "+xid);
            }
            createdTime = rs.getLong(1);
        } catch ( Exception e ) {
            myex = e;
View Full Code Here

TOP

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

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.