Examples of Item


Examples of appl.Portal.Utils.LinkSearch.Item

                    KFMSystem.log.debug("Matched ITEMSET");
                    KFMSystem.log.debug("Extracted String is:");
                    KFMSystem.log.debug(tMatcher.group(0));

                    mItem = new Item( mRegExpItem, tMatcher.group(0), mNames );
                    // add the Element to that Vector wich contains all
                    // ResultItems
                    // Note: 'mItem.getItem()' returns a Hashtable!
                    Hashtable tItem = mItem.getItem();
                    if (!tItem.isEmpty()){
View Full Code Here

Examples of au.edu.uts.aip.mandreacchio.jpa.Item

    return results;
  }

  @Override
  public Item getItemById(int id) {
    @SuppressWarnings("unchecked")
    Item result = em.find(Item.class, id);
    return result;
  }
View Full Code Here

Examples of auction.model.Item

        MonetaryAmount initialPrice =
            new MonetaryAmount(new BigDecimal(123), Currency.getInstance("USD"));
        MonetaryAmount reservePrice =
            new MonetaryAmount(new BigDecimal(333), Currency.getInstance("USD"));

        Item newItem =
            new Item( "Testitem", "Test Description", user,
                      initialPrice, reservePrice,
                      startDate.getTime(), endDate.getTime() );

        // Don't forget to take the return value, this is basically a merge()
        newItem = itemDAO.makePersistent(newItem);

        // End the unit of work
        getUserTransaction().commit();
        em.close();


        // Direct SQL query for database state in auto-commit mode
        em = getEntityManagerFactory().createEntityManager();
        Object[] result = (Object[])
                em.createNativeQuery(
                        "select INITIAL_PRICE as IP," +
                        "       SELLER_ID as SID from ITEM where ITEM_ID = :itemId")
                        .setParameter("itemId", newItem.getId())
                        .getSingleResult();
        em.close();


        // Assert correctness of state
        assert result[0].getClass() == BigDecimal.class;
        assert result[0].equals(newItem.getInitialPrice().getValue());
        // The SQL resultset mapping returns a BigInteger
        assert result[1].equals(new BigInteger("1"));

    }
View Full Code Here

Examples of autotest.common.ui.MultiListSelectPresenter.Item

    }

    private void setSelectedItemsInView(List<HeaderField> fields) {
        List<String> fieldNames = new ArrayList<String>();
        for (HeaderField field : fields) {
            Item item = field.getItem();
            if (item.isGeneratedItem) {
                multiListSelect.addItem(item);
            }
            fieldNames.add(field.getName());
        }
View Full Code Here

Examples of beaver.game.GameplayState.Item

   
    // add the mouse listener
    gc.getInput().addMouseListener(this);
   
    //add two items to the world
    item = new Item[]{new Item(), new Item()};
    item[0].setTypeAmmo();
    item[1].setTypeHP();
    item[0].getBody().setFriction(1000);
    item[1].getBody().setFriction(1000);
    item[0].getBody().setRestitution(0);
View Full Code Here

Examples of br.com.caelum.example.model.Item

  }

  @Get
  @Path("/items/{id}")
  public void show(int id) {
    Item item = database.get(id);
    result.use(representation()).from(item).serialize();
  }
View Full Code Here

Examples of br.com.starcode.parccser.model.PseudoExpression.Item

        List<Item> items = new ArrayList<Item>();
        StringBuilder sb = new StringBuilder();
        while (!end()) {
           
            if (current == '+') {
                items.add(new Item(Type.Signal, "+"));
                sb.append(current);
                next();
            } else if (current == '-') {
                items.add(new Item(Type.Signal, "-"));
                sb.append(current);
                next();
            } else if (Character.isLetter(current)) {
                //identifier
                String ident = identifier();
                sb.append(ident);
                items.add(new Item(Type.Identifier, ident));
            } else if (Character.isDigit(current)) {
                //number or dimension
                String number = number();
                sb.append(number);
                if (!end() && Character.isLetter(current)) {
                    String ident = identifier();
                    sb.append(ident);
                    items.add(new Item(Type.Dimension, number + ident));
                } else {
                    items.add(new Item(Type.Number, number));
                }
            } else if (current == '\'' || current == '"') {
              Character quote = current;
                String s = string();
                sb.append(quote);
                sb.append(s);
                sb.append(quote);
                items.add(new Item(Type.StringType, s));
            } else {
                break;
            }
            ignoreWhitespaces();
           
View Full Code Here

Examples of br.com.triadworks.loja.model.Item

  private void dadoQueUsuarioQueiraRemoverItemDoCarrinhoComIndice(int indice) {
    controller.setIndiceDoItem(indice);
  }

  private void dadoQueCarrinhoJaPossuiDoisProdutos() {
    carrinho.adiciona(new Item(produto("DDD Book", noValorDe("100.00")), 1));
    carrinho.adiciona(new Item(produto("Fone de ouvido", noValorDe("50.00")), 2));
  }
View Full Code Here

Examples of ca.wowapi.entities.Item

  }

  @Test
  public void getItemTest() {
    for (int i = 0; i < TEST_ITEMS.length; i++) {
      Item item = itemAPI.getItem(TEST_ITEMS[i], ItemAPI.REGION_US);   
      Assert.assertNotNull(item);
      Assert.assertEquals(TEST_ITEMS[i], String.valueOf(item.getId()));
    }
  }
View Full Code Here

Examples of cl.molavec.jpa.entities.Item

                quotation.setCustomer(customer);
                quotation.setCompany(company);
                quotation.setQuotationProperties(qp);
                List<Item> itemList = new ArrayList<Item>();
                for(int l=0;l<ITEMS;l++){ //item de la cotización
                  Item item = podamf.manufacturePojo(Item.class);
                  em.persist(item);
                  itemList.add(item);
                }
                quotation.setItems(itemList);
                em.persist(quotation);
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.