// ----------------------------------------------------------------
protected boolean executeUpdateItem(UpdateItem proc) throws SQLException {
Timestamp benchmarkTimes[] = this.getTimestampParameterArray();
ItemInfo itemInfo = profile.getRandomAvailableItemId();
UserId sellerId = itemInfo.getSellerId();
String description = profile.rng.astring(50, 255);
boolean delete_attribute = false;
long add_attribute[] = {
-1,
-1
};
// Delete ITEM_ATTRIBUTE
if (profile.rng.number(1, 100) < AuctionMarkConstants.PROB_UPDATEITEM_DELETE_ATTRIBUTE) {
delete_attribute = true;
}
// Add ITEM_ATTRIBUTE
else if (profile.rng.number(1, 100) < AuctionMarkConstants.PROB_UPDATEITEM_ADD_ATTRIBUTE) {
GlobalAttributeValueId gav_id = profile.getRandomGlobalAttributeValue();
assert(gav_id != null);
add_attribute[0] = gav_id.getGlobalAttributeGroup().encode();
add_attribute[1] = gav_id.encode();
}
proc.run(conn, benchmarkTimes, itemInfo.itemId.encode(),
sellerId.encode(),
description,
delete_attribute,
add_attribute);
conn.commit();