Package com.oltpbenchmark.benchmarks.auctionmark.util

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


                        valid = false;
                        break;
                    }
                } // FOR
                if (valid) {
                    ItemCommentResponse cr = new ItemCommentResponse(vals[0], vals[1], vals[2]);
                    profile.addPendingItemCommentResponse(cr);
                }
            } // FOR
        }
        idx++;
View Full Code Here


                                          buyerId.encode(),
                                          question);
        conn.commit();
        assert(results != null);
       
        profile.pending_commentResponses.add(new ItemCommentResponse(SQLUtil.getLong(results[0]),
                                                                     SQLUtil.getLong(results[1]),
                                                                     SQLUtil.getLong(results[2])));
        return (true);
    }
View Full Code Here

    // ----------------------------------------------------------------
   
    protected boolean executeNewCommentResponse(NewCommentResponse proc) throws SQLException {
        Timestamp benchmarkTimes[] = this.getTimestampParameterArray();
        int idx = profile.rng.nextInt(profile.pending_commentResponses.size());
        ItemCommentResponse cr = profile.pending_commentResponses.remove(idx);
        assert(cr != null);
       
        long commentId = cr.commentId.longValue();;
        ItemId itemId = new ItemId(cr.itemId.longValue());
        UserId sellerId = itemId.getSellerId();
View Full Code Here

        while (vt.next()) {
            int col = 1;
            long ic_id = vt.getLong(col++);
            long ic_i_id = vt.getLong(col++);
            long ic_u_id = vt.getLong(col++);
            ItemCommentResponse cr = new ItemCommentResponse(ic_id, ic_i_id, ic_u_id);
            profile.pending_commentResponses.add(cr);
        } // WHILE
        if (LOG.isDebugEnabled())
            LOG.debug(String.format("Loaded %d records from %s",
                                    profile.pending_commentResponses.size(), AuctionMarkConstants.TABLENAME_ITEM_COMMENT));
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.benchmarks.auctionmark.util.ItemCommentResponse

Copyright © 2018 www.massapicom. 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.