BuildmLearn-Toolkit-Android  2.0.0
The Android version of the BuildmLearn Toolkit. BuildmLearn Toolkit is an easy-to-use program that helps the users make mobile apps without any knowledge of application development.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.buildmlearn.toolkit.quiztemplate.data.QuizDb Class Reference

Contains database util functions for quiz template's simulator. More...

Collaboration diagram for org.buildmlearn.toolkit.quiztemplate.data.QuizDb:
Collaboration graph
[legend]

Public Member Functions

 QuizDb (Context context)
 
void open () throws SQLException
 
void close ()
 
void markAnswered (int id, int answer)
 
void markUnAnswered (int id)
 
void deleteAll ()
 
void resetCount ()
 
int[] getStatistics ()
 
Cursor getQuestionCursorById (int id)
 
long getCountQuestions ()
 
int bulkInsertQuestions (@NonNull ContentValues[] values)
 

Private Attributes

final QuizDBHelper dbHelper
 
SQLiteDatabase db
 

Static Private Attributes

static final String EQUAL = " == "
 

Detailed Description

Contains database util functions for quiz template's simulator.

Created by Anupam (opticod) on 14/8/16.

Constructor & Destructor Documentation

org.buildmlearn.toolkit.quiztemplate.data.QuizDb.QuizDb ( Context  context)

Member Function Documentation

int org.buildmlearn.toolkit.quiztemplate.data.QuizDb.bulkInsertQuestions ( @NonNull ContentValues[]  values)
void org.buildmlearn.toolkit.quiztemplate.data.QuizDb.close ( )
void org.buildmlearn.toolkit.quiztemplate.data.QuizDb.deleteAll ( )
long org.buildmlearn.toolkit.quiztemplate.data.QuizDb.getCountQuestions ( )
Cursor org.buildmlearn.toolkit.quiztemplate.data.QuizDb.getQuestionCursorById ( int  id)
int [] org.buildmlearn.toolkit.quiztemplate.data.QuizDb.getStatistics ( )
void org.buildmlearn.toolkit.quiztemplate.data.QuizDb.markAnswered ( int  id,
int  answer 
)
void org.buildmlearn.toolkit.quiztemplate.data.QuizDb.markUnAnswered ( int  id)
void org.buildmlearn.toolkit.quiztemplate.data.QuizDb.open ( ) throws SQLException
void org.buildmlearn.toolkit.quiztemplate.data.QuizDb.resetCount ( )

Member Data Documentation

SQLiteDatabase org.buildmlearn.toolkit.quiztemplate.data.QuizDb.db
private
final QuizDBHelper org.buildmlearn.toolkit.quiztemplate.data.QuizDb.dbHelper
private
final String org.buildmlearn.toolkit.quiztemplate.data.QuizDb.EQUAL = " == "
staticprivate

The documentation for this class was generated from the following file: