Package edu.brown.benchmark.auctionmark.AuctionMarkConstants

Examples of edu.brown.benchmark.auctionmark.AuctionMarkConstants.ItemStatus.ordinal()


                output_rows[i] = new Object[] { itemId,         // i_id
                                                sellerId,       // i_u_id
                                                numBids,        // i_num_bids
                                                currentPrice,   // i_current_price
                                                endDate,        // i_end_date
                                                itemStatus.ordinal(), // i_status
                                                null,           // imb_ib_id
                                                null            // ib_buyer_id
                };
               
                // Has bid on this item - set status to WAITING_FOR_PURCHASE
View Full Code Here


            int bidResultsCtr = 0;
            for (i = 0; i < with_bids.length; i++) {
                long itemId = (Long)output_rows[i][0];
                long sellerId = (Long)output_rows[i][1];
                ItemStatus status = (with_bids[i] ? ItemStatus.WAITING_FOR_PURCHASE : ItemStatus.CLOSED);
                voltQueueSQL(updateItemStatus, status.ordinal(), currentTime, itemId, sellerId);
                if (debug)
                    LOG.debug(String.format("Updated Status for Item %d => %s", itemId, status));
               
                if (with_bids[i]) {
                    final VoltTable vt = bidResults[bidResultsCtr++];
View Full Code Here

            // CURRENT PRICE
            i_current_price,
            // END DATE
            i_end_date,
            // STATUS
            i_status.ordinal(),
            // PURCHASE ID
            ip_id,
            // BID ID
            ib_id,
            // BUYER ID
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.