Examples of ItemId


Examples of com.google.checkout.sdk.domain.ItemId

    }
    return !mimeType.toLowerCase().contains(XML_MIME_TYPE);
  }

  public static ItemId makeItemId(String itemId) {
    ItemId id = new ItemId();
    id.setMerchantItemId(itemId);
    return id;
  }
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.auctionmark.util.ItemId

        }
        @Override
        protected int populateRow(UserId seller_id, Object[] row, short remaining) {
            int col = 0;
           
            ItemId itemId = new ItemId(seller_id, remaining);
            Timestamp endDate = this.getRandomEndTimestamp();
            Timestamp startDate = this.getRandomStartTimestamp(endDate);
            if (LOG.isTraceEnabled())
                LOG.trace("endDate = " + endDate + " : startDate = " + startDate);
           
View Full Code Here

Examples of edu.brown.benchmark.auctionmark.util.ItemId

        }
        @Override
        protected int populateRow(UserId seller_id, short remaining) {
            int col = 0;
           
            ItemId itemId = new ItemId(seller_id, remaining);
            TimestampType endDate = this.getRandomEndTimestamp();
            TimestampType startDate = this.getRandomStartTimestamp(endDate);
           
            //LOG.info("endDate = " + endDate + " : startDate = " + startDate);
            long bidDurationDay = ((endDate.getTime() - startDate.getTime()) / AuctionMarkConstants.MICROSECONDS_IN_A_DAY);
View Full Code Here

Examples of microsoft.exchange.webservices.data.ItemId

  }

  @Override
  public void updateDueDate(final TaskDto task) {
    try {
      final ItemId itemId = new ItemId(task.getExchangeId());
      final Item email = Item.bind(service, itemId, createEmailPropertySet());
      if (task.getDueDate() == null) {
        email.removeExtendedProperty(PR_TASK_DUE_DATE);
      } else {
        email.setExtendedProperty(PR_TASK_DUE_DATE, task.getDueDate());
View Full Code Here

Examples of org.apache.jackrabbit.core.ItemId

    /**
     * {@inheritDoc}
     */
    public void cache(ItemState state) {
        ItemId id = state.getId();
        if (cache.containsKey(id)) {
            log.warn("overwriting cached entry " + id);
        }
        cache.put(id, state);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ItemId

    /**
     * {@inheritDoc}
     */
    public void cache(ItemState state) {
        ItemId id = state.getId();
        if (refs.contains(id)) {
            log.warn("overwriting cached entry " + id);
        }
        // fake call to update stats of secondary cache
        cache.cache(state);
View Full Code Here

Examples of org.apache.jackrabbit.core.ItemId

    /**
     * {@inheritDoc}
     */
    public void cache(ItemState state) {
        synchronized (cache) {
            ItemId id = state.getId();
            if (cache.containsKey(id)) {
                log.warn("overwriting cached entry " + id);
                evict(id);
            }
            Entry entry = new Entry(state);
View Full Code Here

Examples of org.apache.jackrabbit.core.ItemId

     * @throws ItemStateException
     */
    public NodeState createTransientNodeState(NodeState overlayedState, int initialStatus)
            throws ItemStateException {

        ItemId id = overlayedState.getNodeId();

        // check map; synchronized to ensure an entry is not created twice.
        synchronized (transientStore) {
            if (transientStore.contains(id)) {
                String msg = "there's already a node state instance with id " + id;
View Full Code Here

Examples of org.apache.jackrabbit.core.ItemId

        try {
            int n = in.readInt();   // number of entries
            while (n-- > 0) {
                byte type = in.readByte()// entry type
                ItemId id;
                if (type == NODE_ENTRY) {
                    // entry type: node
                    String s = in.readUTF();    // id
                    id = NodeId.valueOf(s);
                } else {
View Full Code Here

Examples of org.apache.jackrabbit.core.ItemId

            out.writeInt(stateStore.size());    // number of entries
            // entries
            Iterator iterKeys = stateStore.keySet().iterator();
            while (iterKeys.hasNext()) {
                ItemId id = (ItemId) iterKeys.next();
                if (id.denotesNode()) {
                    out.writeByte(NODE_ENTRY)// entry type
                } else {
                    out.writeByte(PROP_ENTRY)// entry type
                }
                out.writeUTF(id.toString());    // id
                byte[] data = (byte[]) stateStore.get(id);
                out.writeInt(data.length)// data length
                out.write(data);    // data
            }
        } finally {
            out.close();
        }

        // write references
        fsRes = new FileSystemResource(wspFS, REFS_FILE_PATH);
        fsRes.makeParentDirs();
        bos = new BufferedOutputStream(fsRes.getOutputStream());
        out = new DataOutputStream(bos);

        try {
            out.writeInt(refsStore.size()); // number of entries
            // entries
            Iterator iterKeys = refsStore.keySet().iterator();
            while (iterKeys.hasNext()) {
                NodeReferencesId id = (NodeReferencesId) iterKeys.next();
                out.writeUTF(id.toString());    // target id
                byte[] data = (byte[]) refsStore.get(id);
                out.writeInt(data.length)// data length
                out.write(data);    // data
            }
        } finally {
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.