|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataBitStorage
Field Summary | |
---|---|
static int |
CANNOT_CHECK
|
static java.lang.String |
DEFAULT_USERS_TABLE_NAME
|
static int |
ERROR_FIXABLE
|
static int |
ERROR_FIXABLE_CREATE
|
static int |
ERROR_NOT_FIXABLE
|
static int |
ERROR_USER_FIXABLE
|
static int |
IS_GOOD
|
static int |
OPERATION_FAILED
|
static int |
OPERATION_PARTIALLY_SUCCEEDED
|
static int |
OPERATION_SUCCEEDED
|
Method Summary | |
---|---|
int |
createNewSurveyInDatabase()
Fix a broken table by creating the survey database into this database. |
java.util.Vector<DataTableModel> |
getAllPossibleAnswerTableModels()
|
java.util.Vector<java.lang.String> |
getAllPossibleAnswerTables()
|
DataTableModel |
getAnswersTable()
|
DataTableModel |
getAnswersTable(java.util.Vector<java.lang.Integer> userIDs)
|
DataTableModel |
getAnswersTableNamed(java.lang.String answersTableName)
Gets a table formatted for answers. |
PageTable |
getNewPage()
|
QuestionDataBitSet |
getNewQuestion()
|
Page |
getPage(int id)
|
java.util.Vector<Page> |
getPages(java.lang.String pageName)
Gets all pages by this name -- since it's possible that there are multiple pages by the same name. |
DataTableModel |
getRepeatedMeasuresTableNamed(java.lang.String repeatedMeasuresTableName)
Get a table formatted for storing repeated measures (NOT an answers table for repeated measures, but for the list of repeated measures). |
Survey |
getSurvey()
If it returns null, the database is in an old format of the survey tool or does not have a survey in the database, or is not a valid database, etc. |
DataTableModel |
getTableNamed(java.lang.String tableName)
|
TableStorage |
getTableStorage()
|
DataTableModel |
getUsersTable()
|
boolean |
isOpen()
|
int |
isSurveyValid()
This should be called first to check whether the survey is a recent one or not. |
Field Detail |
---|
static final int IS_GOOD
static final int CANNOT_CHECK
static final int ERROR_NOT_FIXABLE
static final int ERROR_FIXABLE
static final int ERROR_USER_FIXABLE
static final int ERROR_FIXABLE_CREATE
static final int OPERATION_SUCCEEDED
static final int OPERATION_FAILED
static final int OPERATION_PARTIALLY_SUCCEEDED
static final java.lang.String DEFAULT_USERS_TABLE_NAME
Method Detail |
---|
boolean isOpen()
int isSurveyValid()
int createNewSurveyInDatabase()
Survey getSurvey()
DataTableModel getUsersTable()
DataTableModel getAnswersTable()
DataTableModel getAnswersTable(java.util.Vector<java.lang.Integer> userIDs)
DataTableModel getTableNamed(java.lang.String tableName)
java.util.Vector<DataTableModel> getAllPossibleAnswerTableModels()
java.util.Vector<java.lang.String> getAllPossibleAnswerTables()
DataTableModel getAnswersTableNamed(java.lang.String answersTableName)
answersTableName
-
DataTableModel getRepeatedMeasuresTableNamed(java.lang.String repeatedMeasuresTableName)
repeatedMeasuresTableName
-
QuestionDataBitSet getNewQuestion()
PageTable getNewPage()
java.util.Vector<Page> getPages(java.lang.String pageName)
pageName
-
Page getPage(int id)
TableStorage getTableStorage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |