// UpdateCustomer
// ----------------------------------------------------------------
private boolean executeUpdateCustomer(UpdateCustomer proc) throws SQLException {
// Pick a random customer and then have at it!
CustomerId customer_id = this.profile.getRandomCustomerId();
Long c_id = null;
String c_id_str = null;
long attr0 = this.rng.nextLong();
long attr1 = this.rng.nextLong();
long update_ff = (rng.number(1, 100) <= SEATSConstants.PROB_UPDATE_FREQUENT_FLYER ? 1 : 0);
// Update with the Customer's id as a string
if (rng.nextInt(100) < SEATSConstants.PROB_UPDATE_WITH_CUSTOMER_ID_STR) {
c_id_str = Long.toString(customer_id.encode());
}
// Update using their Customer id
else {
c_id = customer_id.encode();
}
if (LOG.isTraceEnabled()) LOG.trace("Calling " + proc);
proc.run(conn, c_id, c_id_str, update_ff, attr0, attr1);
conn.commit();