@ThreadSafe public final class InputTable extends VoterInputTable<PollService>
VoterInputTable.BadInputException, VoterInputTable.XMLColumnAppender, VoterInputTable.XMLColumnBuilderdatabase, 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, voterServiceInputTable(PollService _voterService)
VoterInputTable.voterService(),
init()public void init() throws SQLException
VoterInputTableinit in class VoterInputTable<PollService>SQLExceptionpublic void delete(String voterEmail) throws SQLException
VoterInputTabledelete in class VoterInputTable<PollService>SQLExceptionpublic String get(String voterEmail) throws SQLException
VoterInputTableget in class VoterInputTable<PollService>SQLExceptionpublic void put(String voterEmail, String xml, ServiceSession userSession) throws VoterInputTable.BadInputException, SQLException
VoterInputTableput 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.BadInputExceptionSQLException