private void populateHistory(int id_customer, int id_wharehouse, int id_district) {
//log.info("populate history");
if (id_customer < 0 || id_wharehouse < 0 || id_district < 0) {
return;
} else {
History newHistory = new History(id_customer, id_district, id_wharehouse, id_district, id_wharehouse, new Date(System.currentTimeMillis()), 10, TpccTools.aleaChainec(12, 24));
boolean successful = false;
while (!successful) {
try {
newHistory.store(basicCache, this.slaveIndex);
successful = true;
} catch (Throwable e) {
log.warn("Storing new history failed", e);
}
}