Package cmu.survey.data

Data components that are shared between multiple parts of the program, or that are fairly generic.

See:
          Description

Interface Summary
DatabaseStorage  
DataTableModel.DataTableModelGUIListener  
FilterChangedListener  
ForwardOnlyData For those who want to implement a new ForwardOnlyData (probably in a new DataTableModel): Note that this automatically upgrades the table whenever something is accessed that doesn't currently exist, if a TableFormat has been set for the table.
TableFormat A table in the database that can be created upon demand, and can be upgraded on demand.
TableFormat.ColumnFormat  
TableFormat.ColumnFormatKnowHowToCreate A column that is non-standard or expected to be needed in an upgrade, with special upgrade needs (more than just creating the column).
TableFormat.TableFormatAndDoMore  
TableStorage Load tables from a database through this generic interface.
TableStorage.SearchingForConnectionListener Recieves notifications of whether the TableStorage is currently unavailable and waiting for a new connection.
TableStorage.TableListListener Recieves notifications whenever the list of tables changes -- i.e. on any of these events:
- a table is created
- a table is deleted
- a table is renamed
 

Class Summary
DatabaseConstants  
DatabaseConstants.AuxillaryOptions See QuestionsAuxillaryOptionTypes.xls (in this folder) for a spreadsheet of most of these, with details about which columns from the database they should get pulled from.
DatabaseConstants.Choices  
DatabaseConstants.Questions  
DatabaseConstants.Variables  
DatabaseStorage.UserDatabase Info about a connection to the database that a user has.
DatabaseStorageFactory  
DatabaseStorageFactory.ConnectionType  
DataTableModel Accesses database data in a generic fashion.
DataTableModelSingularInfo<DTM extends DataTableModel> The information about a data table that is independent of its views.
Filter<T> Show only rows matching certain criteria.
FilterStorage  
OrderBy A direction to sort a column.
TableFormat.ColumnFormatRenamed This assumes that neither the old nor new columns are primary keys, and that the old and new columns are the same type.
TableFormat.ColumnFormatStub  
TableFormat.TableFormatStub  
TableFormat.TableFormatStubAndDoMoreAddRow Adds a default row of data automatically when the table is created.
TableStorageFactory  
TableStorageStub<DTM extends DataTableModel>  
TableVersionStorage Check what version of the table is in the database before upgrading to a new one.
VectorDataSet<T extends HasBeenModified> For storing a Vector of data that needs to be loaded and re-saved.
WebappConfiguration  
 

Exception Summary
FailedRequest Data could not be retrieved, either beause the table is too old, a column does not exist, or because a SQL error occurred.
FailedRequest.AlreadyClosedError  
FailedRequest.BadColumnNameException  
FailedRequest.DatabaseFailure  
FailedRequest.TableVersionNewerThanProgram The table is newer than the code requesting it.
WebappConfiguration.WebappError  
WebappConfiguration.WebappNeedsToBeRestartedError  
WebappConfiguration.WebappNotConfiguredError  
 

Package cmu.survey.data Description

Data components that are shared between multiple parts of the program, or that are fairly generic. For example, TableStorage is used in:


Specifically, this package is made for generic data components that can be used in many places in different programs, that are specifically designed to be program-independent.