builder.setGlobalConfParameter("site.anticache_reset", true);
builder.setGlobalConfParameter("site.anticache_check_interval", Integer.MAX_VALUE);
builder.setGlobalConfParameter("site.anticache_batching", false);
// build up a project builder for the TPC-C app
VoterProjectBuilder project = new VoterProjectBuilder();
project.addAllDefaults();
project.markTableEvictable(VoterConstants.TABLENAME_VOTES);
project.markTableEvictable(VoterConstants.TABLENAME_CONTESTANTS);
project.addStmtProcedure("GetVote",
"SELECT * FROM " + VoterConstants.TABLENAME_VOTES + " WHERE vote_id = ?");
project.addStmtProcedure("GetAllVotes",
"SELECT * FROM " + VoterConstants.TABLENAME_VOTES);
project.addStmtProcedure("GetVoteJoin",
String.format("SELECT phone_number, contestant_number FROM %s, %s " +
" WHERE vote_id = ? " +
" AND %s.contestant_number = %s.contestant_number",
VoterConstants.TABLENAME_VOTES, VoterConstants.TABLENAME_CONTESTANTS,
VoterConstants.TABLENAME_VOTES, VoterConstants.TABLENAME_CONTESTANTS));