Examples of TransactionData


Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

      RandomAccessFile ofile = null;
      java.nio.channels.FileLock lock = null;

      if (imageSize > 0)
      {
        TransactionData theLogEntry = getLogName(objUid, tName, buffSize);    // always adds entry to log
        LogInstance theLog = theLogEntry.container;
     
        if (theLog == null)
          throw new ObjectStoreException();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

     * the state there any longer. Conversely it's possible that it could do
     * a read on a state that is about to be deleted. Recovery should be
     * able to cope with these edge cases.
     */
   
    TransactionData td = getLogName(u, tn, -1);
   
    if (td == null)
      throw new ObjectStoreException();
   
    ArrayList<InputObjectState> states = scanLog(td.container.getName(), tn);
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

    return _ids.containsKey(id);
  }
 
  public final TransactionData getTxId (Uid txId)
  {
    return new TransactionData(txId, _used, this);
  }
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

    return new TransactionData(txId, _used, this);
  }
 
  public final TransactionData addTxId (Uid txId, long size)
  {
    TransactionData td = new TransactionData(txId, _used, this);
   
    _transactions.add(td)// allow multiple entries in the same log
    _ids.put(txId, txId);
    _used += size;
   
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

    return _ids.containsKey(id);
  }

  public final TransactionData getTxId (Uid txId)
  {
    return new TransactionData(txId, _used, this);
  }
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

    return new TransactionData(txId, _used, this);
  }

  public final TransactionData addTxId (Uid txId, long size)
  {
    TransactionData td = new TransactionData(txId, _used, this);

    _transactions.add(td)// allow multiple entries in the same log
    _ids.put(txId, txId);
    _used += size;
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

      RandomAccessFile ofile = null;
      java.nio.channels.FileLock lock = null;

      if (imageSize > 0)
      {
        TransactionData theLogEntry = getLogName(objUid, tName, buffSize);    // always adds entry to log
        LogInstance theLog = theLogEntry.container;

        if (theLog == null)
          throw new ObjectStoreException();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.objectstore.LogInstance.TransactionData

     * the state there any longer. Conversely it's possible that it could do
     * a read on a state that is about to be deleted. Recovery should be
     * able to cope with these edge cases.
     */

    TransactionData td = getLogName(u, tn, -1);

    if (td == null)
      throw new ObjectStoreException();

    ArrayList<InputObjectState> states = scanLog(td.container.getName(), tn);
View Full Code Here

Examples of com.google.gdata.data.finance.TransactionData

   * @param transactionEntry The transaction entry of interest
   */
  private static void printTransactionEntry(TransactionEntry transactionEntry) {
    System.out.println("\nTransaction Entry\n-----------------");
    printBasicEntryDetails(transactionEntry);
    TransactionData transactionData = transactionEntry.getTransactionData();
    System.out.println("\tTransaction Data:");
    System.out.println("\t\tType: " +
                       (transactionData.getType() == null ? "no type" : transactionData.getType()));
    System.out.println("\t\tDate: " +
                       (transactionData.getDate() == null ? "no date" : transactionData.getDate()));
    System.out.printf("\t\tShares: %.2f\n", transactionData.getShares());
    if (transactionData.getPrice() == null) {
      System.out.println("\t\tPrice not specified");
    } else {
      for (int i = 0; i < transactionData.getPrice().getMoney().size(); i++) {
        Money m = transactionData.getPrice().getMoney().get(i);
        System.out.printf("\t\tThis transaction had a unit price of %.2f %s.\n",
                          m.getAmount(), m.getCurrencyCode());
      }
    }
    if (transactionData.getCommission() == null) {
      System.out.println("\t\tCommission not specified");
    } else {
      for (int i = 0; i < transactionData.getCommission().getMoney().size(); i++) {
        Money m = transactionData.getCommission().getMoney().get(i);
        System.out.printf("\t\tThis transaction had a commission of %.2f %s.\n",
                          m.getAmount(), m.getCurrencyCode());
      }
    }
    System.out.println("\t\tNotes: " +
                       (null == transactionData.getNotes() ? "none" : transactionData.getNotes()));
  }
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.transactions.model.TransactionData

    @Override
    public void begin() throws SailException {
        super.begin();

        // start new transaction
        data = new TransactionData();

    }
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.