Examples of TransactionEntry


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

          String commission = sc.nextLine();
          System.out.print("Enter currency (optional, e.g. USD, EUR, JPY): ");
          String currency = sc.nextLine();
          System.out.print("Enter any notes: ");
          String notes = sc.nextLine();
          TransactionEntry entry = FinanceUtilities.makeTransactionEntry(
              type, date, shares, price, commission, currency, notes);
          insertTransactionEntry(service, requestUrl, entry);
          break;
        case UPDATE:
          System.out.println("Enter portfolio ID");
View Full Code Here

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

      System.out.println("********** Beginning of inline feed ***************");
      printBasicFeedDetails(positionEntry.getFeedLink().getFeed());
      TransactionFeed inlinedFeed = positionEntry.getFeedLink().getFeed();
      printBasicFeedDetails(inlinedFeed);
      for (int i = 0; i < inlinedFeed.getEntries().size(); i++) {
        TransactionEntry transactionEntry = inlinedFeed.getEntries().get(i);
        printTransactionEntry(transactionEntry);
      }
      System.out.println("************* End of inlined feed *****************");
    }
    System.out.println("\tTicker:");
View Full Code Here

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

    System.out.println("Requesting Feed at location " + feedUrl);
    TransactionFeed transactionFeed = service.getFeed(new URL(feedUrl), TransactionFeed.class);
    System.out.println("\nTransaction Feed\n================");
    printBasicFeedDetails(transactionFeed);
    for (int i = 0; i < transactionFeed.getEntries().size(); i++) {
      TransactionEntry transactionEntry = transactionFeed.getEntries().get(i);
      printTransactionEntry(transactionEntry);
    }
  }
View Full Code Here

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

   * @throws ServiceException If the service is unable to handle the request.
   */
  private static void queryTransactionEntry(FinanceService service, String entryUrl)
      throws IOException, MalformedURLException, ServiceException {
    System.out.println("Requesting Entry at location: " + entryUrl);
    TransactionEntry transactionEntry =
        service.getEntry(new URL(entryUrl), TransactionEntry.class);
    printTransactionEntry(transactionEntry);
  }
View Full Code Here

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

  private static void insertTransactionEntry(FinanceService service,
                                             String feedUrl,
                                             TransactionEntry entry)
      throws IOException, MalformedURLException, ServiceException {
    System.out.println("Inserting Entry at location: " + feedUrl);
    TransactionEntry insertedEntry = service.insert(new URL(feedUrl), entry);
    printTransactionEntry(insertedEntry);
  }
View Full Code Here

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

  private static void updateTransactionEntry(FinanceService service,
                                             String entryUrl,
                                             TransactionEntry entry)
      throws IOException, MalformedURLException, ServiceException {
    System.out.println("Updating Entry at location: " + entryUrl);
    TransactionEntry updatedEntry = service.update(new URL(entryUrl), entry);
    printTransactionEntry(updatedEntry);
  }
View Full Code Here

Examples of com.mciseries.iLogTransactions.TransactionEntry

    int      quantity   = event.getQuantity();
    double    price    = event.getShop().getPrice();
    ItemStack  stack    = event.getShop().getItemStack();
   
    // log
    new TransactionEntry(scs.getName(), quantity, false, event.getPlayer().getName(),
        Term.MESSAGE_SELL_COSTUMER.get(MaterialNames.getItemName(stack), ""+quantity, ""+price));
  }
View Full Code Here

Examples of org.jboss.cache.TransactionEntry


    private void copyInvocationScopeOptionsToTxScope(InvocationContext ctx)
    {
        // notify the transaction entry that this override is in place.
        TransactionEntry entry = txTable.get(ctx.getGlobalTransaction());
        if (entry != null)
        {
            Option txScopeOption = new Option();
            txScopeOption.setCacheModeLocal(ctx.getOptionOverrides() != null && ctx.getOptionOverrides().isCacheModeLocal());
            entry.setOption(txScopeOption);
        }
    }
View Full Code Here

Examples of org.jboss.cache.TransactionEntry

            // under the GlobalTx key
            if (txTable.get(gtx) == null)
            {
                // create a new transaction entry

                TransactionEntry entry = cache.isNodeLockingOptimistic() ? new OptimisticTransactionEntry() : new TransactionEntry();
                entry.setTransaction(ltx);
                log.debug("creating new tx entry");
                txTable.put(gtx, entry);
                if (log.isTraceEnabled()) log.trace("TxTable contents: " + txTable);
            }
View Full Code Here

Examples of org.jboss.cache.TransactionEntry

    }


    private void cleanupStaleLocks(GlobalTransaction gtx) throws Throwable
    {
        TransactionEntry entry = txTable.get(gtx);
        if (entry != null)
           entry.releaseAllLocksLIFO(gtx);
    }
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.