votorola.a.election
Class CR_Vote.CachedCountNodeTable

java.lang.Object
  extended by CountNode.Table
      extended by CR_Vote.CachedCountNodeTable
Enclosing class:
CR_Vote

@ThreadRestricted
static final class CR_Vote.CachedCountNodeTable
extends CountNode.Table

A count-node table that caches its nodes.


Nested Class Summary
 
Nested classes/interfaces inherited from class CountNode.Table
CountNode.Table.RankedCumulate
 
Constructor Summary
CR_Vote.CachedCountNodeTable(ReadyDirectory rD, Database d)
           
 
Method Summary
(package private)  CountNode get(String voterEmail)
          Retrieves a node from this table.
 CountNode getOrCreate(String voterEmail)
          Retrieves a node from this table; or, if none is stored, a default node.
 
Methods inherited from class CountNode.Table
create, database, drop, exists, getByRankIndeces, getCastersByCandidate, put, rank, readyDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CR_Vote.CachedCountNodeTable

CR_Vote.CachedCountNodeTable(ReadyDirectory rD,
                             Database d)
                       throws IOException
Throws:
IOException
Method Detail

get

CountNode get(String voterEmail)
        throws SQLException
Description copied from class: CountNode.Table
Retrieves a node from this table.

Overrides:
get in class CountNode.Table
Returns:
node as stored in the table; or null, if none is stored
Throws:
SQLException

getOrCreate

public CountNode getOrCreate(String voterEmail)
                      throws SQLException
Description copied from class: CountNode.Table
Retrieves a node from this table; or, if none is stored, a default node.

Overrides:
getOrCreate in class CountNode.Table
Returns:
CountNode as stored in the table; or, if none is stored, a CountNodeIC with default values
Throws:
SQLException