Examples of TransactionInfo


Examples of org.apache.activemq.command.TransactionInfo

        }

        LocalTransactionId activemqTx = new LocalTransactionId(connectionId, transactionIdGenerator.getNextSequenceId());
        transactions.put(stompTx, activemqTx);

        TransactionInfo tx = new TransactionInfo();
        tx.setConnectionId(connectionId);
        tx.setTransactionId(activemqTx);
        tx.setType(TransactionInfo.BEGIN);

        sendToActiveMQ(tx, createResponseHandler(command));

    }
View Full Code Here

Examples of org.apache.activemq.command.TransactionInfo

        TransactionId activemqTx = transactions.remove(stompTx);
        if (activemqTx == null) {
            throw new ProtocolException("Invalid transaction id: " + stompTx);
        }

        TransactionInfo tx = new TransactionInfo();
        tx.setConnectionId(connectionId);
        tx.setTransactionId(activemqTx);
        tx.setType(TransactionInfo.COMMIT_ONE_PHASE);

        sendToActiveMQ(tx, createResponseHandler(command));
    }
View Full Code Here

Examples of org.apache.activemq.command.TransactionInfo

        TransactionId activemqTx = transactions.remove(stompTx);
        if (activemqTx == null) {
            throw new ProtocolException("Invalid transaction id: " + stompTx);
        }

        TransactionInfo tx = new TransactionInfo();
        tx.setConnectionId(connectionId);
        tx.setTransactionId(activemqTx);
        tx.setType(TransactionInfo.ROLLBACK);

        sendToActiveMQ(tx, createResponseHandler(command));

    }
View Full Code Here

Examples of org.apache.derby.iapi.store.access.TransactionInfo

      addInfo(sb, "  Waiting XID : {", xid);
      addInfo(sb, ", ", lock.getQualifier());
      sb.append("} ");
      if (tt != null) {
        for (int tti = tt.length - 1; tti >= 0; tti--) {
          TransactionInfo ti = tt[tti];

                    // RESOLVE (track 2771) - not sure why
                    // ti.getTransactionIdString() or ti can return null.
                    if (ti != null)
                    {
                        String idString = ti.getTransactionIdString();

                        if (idString != null && idString.equals(xid)) {

                            addInfo(sb, ", ", ti.getUsernameString());
                            addInfo(sb, ", ", ti.getStatementTextString());
                            break;
                        }
                    }
        }
      }
View Full Code Here

Examples of org.apache.derby.iapi.store.access.TransactionInfo

    for (currentRow++;
       currentRow < transactionTable.length;
       currentRow++)
    {
      TransactionInfo info = transactionTable[currentRow];
      if (info == null)
        continue;    // transaction object in flux while the
                // snap shot was taken, get another row
      return true;
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.access.TransactionInfo

    All columns in TransactionTable VTI is of String type.
    @see java.sql.ResultSet#getString
   */
  public String getString(int columnNumber)
  {
    TransactionInfo info = transactionTable[currentRow];
    String str = null;

    switch(columnNumber)
    {
    case 1:
      str = info.getTransactionIdString(); break;

    case 2:
      str = info.getGlobalTransactionIdString(); break;

    case 3:
      str = info.getUsernameString(); break;

    case 4:
      str = info.getTransactionTypeString(); break;

    case 5:
      str = info.getTransactionStatusString(); break;

    case 6:
      str = info.getFirstLogInstantString(); break;

    case 7:

      str = info.getStatementTextString();
      str = StringUtil.truncate(str, Limits.DB2_VARCHAR_MAXWIDTH);
      break;

    default:
      str = null;
View Full Code Here

Examples of org.apache.derby.iapi.store.access.TransactionInfo

      addInfo(sb, "  Waiting XID : {", xid);
      addInfo(sb, ", ", lock.getQualifier());
      sb.append("} ");
      if (tt != null) {
        for (int tti = tt.length - 1; tti >= 0; tti--) {
          TransactionInfo ti = tt[tti];

                    // RESOLVE (track 2771) - not sure why
                    // ti.getTransactionIdString() or ti can return null.
                    if (ti != null)
                    {
                        String idString = ti.getTransactionIdString();

                        if (idString != null && idString.equals(xid)) {

                            addInfo(sb, ", ", ti.getUsernameString());
                            addInfo(sb, ", ", ti.getStatementTextString());
                            break;
                        }
                    }
        }
      }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.transaction.TransactionInfo

     * @see org.apache.jackrabbit.webdav.transaction.TransactionDavServletRequest#getTransactionInfo()
     */
    public TransactionInfo getTransactionInfo() throws DavException {
        Document requestDocument = getRequestDocument();
        if (requestDocument != null) {
            return new TransactionInfo(requestDocument.getDocumentElement());
        }
        return null;
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.transaction.TransactionInfo

                method = new UnLockMethod(uri, batchId);
                initMethod(method, sessionInfo, true);

                // in contrast to standard UNLOCK, the tx-unlock provides a
                // request body.
                method.setRequestBody(new TransactionInfo(commit));
                client.executeMethod(method);
                method.checkSuccess();
                if (sessionInfo instanceof SessionInfoImpl) {
                    ((SessionInfoImpl) sessionInfo).setLastBatchId(batchId);
                }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.transaction.TransactionInfo

     * @see org.apache.jackrabbit.webdav.transaction.TransactionDavServletRequest#getTransactionInfo()
     */
    public TransactionInfo getTransactionInfo() throws DavException {
        Document requestDocument = getRequestDocument();
        if (requestDocument != null) {
            return new TransactionInfo(requestDocument.getDocumentElement());
        }
        return null;
    }
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.