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.comprehensiontemplate.data.ComprehensionDb Class Reference

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

Collaboration diagram for org.buildmlearn.toolkit.comprehensiontemplate.data.ComprehensionDb:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

final ComprehensionDBHelper dbHelper
 
SQLiteDatabase db
 

Static Private Attributes

static final String EQUAL = " == "
 

Detailed Description

Contains database util functions for comprehension template's simulator.

Created by Anupam (opticod) on 5/6/16.

Constructor & Destructor Documentation

org.buildmlearn.toolkit.comprehensiontemplate.data.ComprehensionDb.ComprehensionDb ( Context  context)

Member Function Documentation

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

Member Data Documentation

SQLiteDatabase org.buildmlearn.toolkit.comprehensiontemplate.data.ComprehensionDb.db
private
final ComprehensionDBHelper org.buildmlearn.toolkit.comprehensiontemplate.data.ComprehensionDb.dbHelper
private
final String org.buildmlearn.toolkit.comprehensiontemplate.data.ComprehensionDb.EQUAL = " == "
staticprivate

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