Examples of localTransactionCommitted()


Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

    @Test
    public void testSendEventTxCommitted() throws Exception {
        ConnectionEvent event = new ConnectionEvent(mc, ConnectionEvent.LOCAL_TRANSACTION_COMMITTED);
        ConnectionEventListener listener = EasyMock.createMock(ConnectionEventListener.class);
        mc.addConnectionEventListener(listener);
        listener.localTransactionCommitted(EasyMock.isA(ConnectionEvent.class));
        EasyMock.expectLastCall();
        EasyMock.replay(listener);
        mc.sendEvent(event);
        EasyMock.verify(listener);
    }
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

    public void localTransactionCommittedEvent(MockConnection mockConnection) {
        ConnectionEvent connectionEvent = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_COMMITTED);
        connectionEvent.setConnectionHandle(mockConnection);
        for (Iterator iterator = new ArrayList(connectionEventListeners).iterator(); iterator.hasNext();) {
            ConnectionEventListener connectionEventListener = (ConnectionEventListener) iterator.next();
            connectionEventListener.localTransactionCommitted(connectionEvent);
        }
    }

    public void localTransactionRolledBackEvent(MockConnection mockConnection) {
        ConnectionEvent connectionEvent = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK);
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

               case ConnectionEvent.LOCAL_TRANSACTION_STARTED:
                  listener.localTransactionStarted(evt);
                  break;

               case ConnectionEvent.LOCAL_TRANSACTION_COMMITTED:
                  listener.localTransactionCommitted(evt);
                  break;

               case ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK:
                  listener.localTransactionRolledback(evt);
                  break;
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

                        break;
                    case ConnectionEvent.CONNECTION_ERROR_OCCURRED:
                        listener.connectionErrorOccurred(event);
                        break;
                    case ConnectionEvent.LOCAL_TRANSACTION_COMMITTED:
                        listener.localTransactionCommitted(event);
                        break;
                    case ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK:
                        listener.localTransactionRolledback(event);
                        break;
                    case ConnectionEvent.LOCAL_TRANSACTION_STARTED:
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

                        break;
                    case ConnectionEvent.CONNECTION_ERROR_OCCURRED:
                        listener.connectionErrorOccurred(event);
                        break;
                    case ConnectionEvent.LOCAL_TRANSACTION_COMMITTED:
                        listener.localTransactionCommitted(event);
                        break;
                    case ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK:
                        listener.localTransactionRolledback(event);
                        break;
                    case ConnectionEvent.LOCAL_TRANSACTION_STARTED:
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

    @Test
    public void testSendEventTxCommitted() throws Exception {
        ConnectionEvent event = new ConnectionEvent(mc, ConnectionEvent.LOCAL_TRANSACTION_COMMITTED);
        ConnectionEventListener listener = EasyMock.createMock(ConnectionEventListener.class);
        mc.addConnectionEventListener(listener);
        listener.localTransactionCommitted(EasyMock.isA(ConnectionEvent.class));
        EasyMock.expectLastCall();
        EasyMock.replay(listener);
        mc.sendEvent(event);
        EasyMock.verify(listener);
    }
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

    public void localTransactionCommittedEvent(MockConnection mockConnection) {
        ConnectionEvent connectionEvent = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_COMMITTED);
        connectionEvent.setConnectionHandle(mockConnection);
        for (Iterator iterator = new ArrayList(connectionEventListeners).iterator(); iterator.hasNext();) {
            ConnectionEventListener connectionEventListener = (ConnectionEventListener) iterator.next();
            connectionEventListener.localTransactionCommitted(connectionEvent);
        }
    }

    public void localTransactionRolledBackEvent(MockConnection mockConnection) {
        ConnectionEvent connectionEvent = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK);
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

                break;
            case ConnectionEvent.LOCAL_TRANSACTION_COMMITTED:
                for (Iterator i = copy.iterator(); i.hasNext();)
                {
                    ConnectionEventListener cel = (ConnectionEventListener) i.next();
                    cel.localTransactionCommitted(ce);
                }
                break;
            case ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK:
                for (Iterator i = copy.iterator(); i.hasNext();)
                {
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

          break;
        case ConnectionEvent.LOCAL_TRANSACTION_STARTED:
          l.localTransactionStarted(ce);
          break;
        case ConnectionEvent.LOCAL_TRANSACTION_COMMITTED:
          l.localTransactionCommitted(ce);
          break;
        case ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK:
          l.localTransactionRolledback(ce);
          break;
        case ConnectionEvent.CONNECTION_ERROR_OCCURRED:
View Full Code Here

Examples of javax.resource.spi.ConnectionEventListener.localTransactionCommitted()

    @Test
    public void testSendEventTxCommitted() throws Exception {
        ConnectionEvent event = new ConnectionEvent(mc, ConnectionEvent.LOCAL_TRANSACTION_COMMITTED);
        ConnectionEventListener listener = EasyMock.createMock(ConnectionEventListener.class);
        mc.addConnectionEventListener(listener);
        listener.localTransactionCommitted(EasyMock.isA(ConnectionEvent.class));
        EasyMock.expectLastCall();
        EasyMock.replay(listener);
        mc.sendEvent(event);
        EasyMock.verify(listener);
    }
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.