Package com.oltpbenchmark.benchmarks.auctionmark.util

Examples of com.oltpbenchmark.benchmarks.auctionmark.util.ItemStatus.ordinal()


            // NUM BIDS
            i_num_bids,
            // END DATE
            i_end_date,
            // STATUS
            i_status.ordinal(),
            // PURCHASE ID
            ip_id,
            // BID ID
            ib_id,
            // BUYER ID
View Full Code Here


            // NUM BIDS
            i_num_bids + 1,
            // END DATE
            i_end_date,
            // STATUS
            i_status.ordinal(),
            // MAX BID ID
            newBidId,
            // MAX BID BUYER_ID
            newBidMaxBuyerId,
        };
View Full Code Here

                    closed_ctr++;
                    itemStatus = ItemStatus.CLOSED;
                }
               
                // Update Status!
                updated = this.getPreparedStatement(conn, updateItemStatus, itemStatus.ordinal(), currentTime, itemId, sellerId).executeUpdate();
                if (debug)
                    LOG.debug(String.format("Updated Status for Item %d => %s", itemId, itemStatus));
               
                Object row[] = new Object[] {
                        itemId,               // i_id
View Full Code Here

                        sellerId,             // i_u_id
                        i_name,               // i_name
                        currentPrice,         // i_current_price
                        numBids,              // i_num_bids
                        endDate,              // i_end_date
                        itemStatus.ordinal(), // i_status
                        bidId,                // imb_ib_id
                        buyerId               // ib_buyer_id
                };
                output_rows.add(row);
            } // WHILE
View Full Code Here

            new_status = ItemStatus.ENDING_SOON;
        }
       
        if (new_status != itemInfo.status) {
            if (itemInfo.status != null)
                assert(new_status.ordinal() > itemInfo.status.ordinal()) :
                    "Trying to improperly move " + itemInfo + " from " + itemInfo.status + " to " + new_status;
           
            switch (new_status) {
                case OPEN:
                    this.addItem(this.items_available, itemInfo);
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.