Permalink
Browse files

added successvotes

  • Loading branch information...
jmeehan16 committed Aug 31, 2014
1 parent adbc728 commit 3912c44839065eeb85e57a8eea473d1a1203e746
@@ -118,6 +118,7 @@
+ " , contestant_number ASC");
public final SQLStmt getVoteCountStmt = new SQLStmt( "SELECT totalcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getSuccessCountStmt = new SQLStmt( "SELECT successcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getActualVoteCountStmt = new SQLStmt( "SELECT totalcnt, successcnt FROM proc_one_count WHERE row_id = 1;");
public final SQLStmt getTrendingCountStmt = new SQLStmt("SELECT count(*) FROM w_rows;");
public final SQLStmt getRemainingContestants = new SQLStmt("SELECT count(*) FROM contestants;");
@@ -148,9 +149,11 @@ private void printResults() throws IOException
voltQueueSQL(getTrendingCountStmt);
tableNames.add("TrendingCount");
voltQueueSQL(getRemainingContestants);
tableNames.add("RemainingContestants");
tableNames.add("remainingContestants");
voltQueueSQL(getVotesTilNextDeleteStmt);
tableNames.add("VotesTilNextDelete");
voltQueueSQL(getSuccessCountStmt);
tableNames.add("SuccessCount");
//voltQueueSQL(getRemovedContestant);
//tableNames.add("RemovedContestant");
}
@@ -137,6 +137,7 @@
+ " , contestant_number ASC");
public final SQLStmt getVoteCountStmt = new SQLStmt( "SELECT totalcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getSuccessCountStmt = new SQLStmt( "SELECT successcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getActualVoteCountStmt = new SQLStmt( "SELECT totalcnt, successcnt FROM proc_one_count WHERE row_id = 1;");
public final SQLStmt getTrendingCountStmt = new SQLStmt("SELECT count(*) FROM w_rows;");
public final SQLStmt getRemainingContestants = new SQLStmt("SELECT count(*) FROM contestants;");
@@ -166,9 +167,11 @@ private void printResults(int numVotes) throws IOException
voltQueueSQL(getTrendingCountStmt);
tableNames.add("TrendingCount");
voltQueueSQL(getRemainingContestants);
tableNames.add("RemainingContestants");
tableNames.add("remainingContestants");
voltQueueSQL(getVotesTilNextDeleteStmt);
tableNames.add("VotesTilNextDelete");
voltQueueSQL(getSuccessCountStmt);
tableNames.add("SuccessCount");
//voltQueueSQL(getRemovedContestant);
//tableNames.add("RemovedContestant");
}
@@ -129,6 +129,7 @@ protected void toSetTriggerTableName()
+ " , contestant_number ASC");
public final SQLStmt getVoteCountStmt = new SQLStmt( "SELECT totalcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getSuccessCountStmt = new SQLStmt( "SELECT successcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getActualVoteCountStmt = new SQLStmt( "SELECT totalcnt, successcnt FROM proc_one_count WHERE row_id = 1;");
public final SQLStmt getTrendingCountStmt = new SQLStmt("SELECT count(*) FROM trending_leaderboard;");
public final SQLStmt getRemainingContestants = new SQLStmt("SELECT count(*) FROM contestants;");
@@ -159,9 +160,11 @@ private void printResults() throws IOException
voltQueueSQL(getTrendingCountStmt);
tableNames.add("TrendingCount");
voltQueueSQL(getRemainingContestants);
tableNames.add("RemainingContestants");
tableNames.add("remainingContestants");
voltQueueSQL(getVotesTilNextDeleteStmt);
tableNames.add("VotesTilNextDelete");
voltQueueSQL(getSuccessCountStmt);
tableNames.add("SuccessCount");
//voltQueueSQL(getRemovedContestant);
//tableNames.add("RemovedContestant");
}
@@ -137,6 +137,7 @@
+ " , contestant_number ASC");
public final SQLStmt getVoteCountStmt = new SQLStmt( "SELECT totalcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getSuccessCountStmt = new SQLStmt( "SELECT successcnt FROM proc_one_count WHERE row_id=1;");
public final SQLStmt getActualVoteCountStmt = new SQLStmt( "SELECT totalcnt, successcnt FROM proc_one_count WHERE row_id = 1;");
public final SQLStmt getTrendingCountStmt = new SQLStmt("SELECT count(*) FROM trending_leaderboard;");
public final SQLStmt getRemainingContestants = new SQLStmt("SELECT count(*) FROM contestants;");
@@ -166,9 +167,11 @@ private void printResults(int numVotes) throws IOException
voltQueueSQL(getTrendingCountStmt);
tableNames.add("TrendingCount");
voltQueueSQL(getRemainingContestants);
tableNames.add("RemainingContestants");
tableNames.add("remainingContestants");
voltQueueSQL(getVotesTilNextDeleteStmt);
tableNames.add("VotesTilNextDelete");
voltQueueSQL(getSuccessCountStmt);
tableNames.add("SuccessCount");
//voltQueueSQL(getRemovedContestant);
//tableNames.add("RemovedContestant");
}

0 comments on commit 3912c44

Please sign in to comment.