@ThreadSafe public final class InputTable extends VoterInputTable<PollService>
VoterInputTable.BadInputException, VoterInputTable.XMLColumnAppender, VoterInputTable.XMLColumnBuilder
database, MAX_INPUT_LENGTH, statementKeyBase, tableName, voterService
Constructor and Description |
---|
InputTable(PollService _voterService)
Partially constructs an InputTable.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(String voterEmail)
Removes a voter's data from the table if any is stored there.
|
String |
get(String voterEmail)
Retrieves a voter's data from the 'xml' column.
|
void |
init()
Finishes constructing a VoterInputTable, physically creating it if it does not
already exist.
|
void |
put(String voterEmail,
String xml,
ServiceSession userSession)
Stores a voter's data to the 'xml' column.
|
database, lengthConstrained, newUnparseableInputException, tableName, testAccessAllowed, voterService
InputTable(PollService _voterService)
VoterInputTable.voterService()
,
init()
public void init() throws SQLException
VoterInputTable
init
in class VoterInputTable<PollService>
SQLException
public void delete(String voterEmail) throws SQLException
VoterInputTable
delete
in class VoterInputTable<PollService>
SQLException
public String get(String voterEmail) throws SQLException
VoterInputTable
get
in class VoterInputTable<PollService>
SQLException
public void put(String voterEmail, String xml, ServiceSession userSession) throws VoterInputTable.BadInputException, SQLException
VoterInputTable
put
in class VoterInputTable<PollService>
xml
- the data to store.userSession
- the session of the user requesting the change, or null if
the change is not user requested.VoterInputTable.BadInputException
SQLException