Wondercoll
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
com.example.wondercoll.DatabaseConnection Class Reference
Inheritance diagram for com.example.wondercoll.DatabaseConnection:

Public Member Functions

 DatabaseConnection (Context context)
 
synchronized void close ()
 
Card getCardFromDatabase (ItemPageActivity act, int id)
 
boolean addCardToDatabase (Card new_card, Activity activity)
 
void deleteAll ()
 
void populateListViewWithCards (Activity a, String q)
 
void onOpen (SQLiteDatabase db)
 
void onCreate (SQLiteDatabase db)
 
void onUpgrade (SQLiteDatabase db, int oldVersion, int newVersion)
 

Constructor & Destructor Documentation

com.example.wondercoll.DatabaseConnection.DatabaseConnection ( Context  context)

Constructor Takes and keeps a reference of the passed context in order to access to the application assets and resources.

Parameters
context

Member Function Documentation

boolean com.example.wondercoll.DatabaseConnection.addCardToDatabase ( Card  new_card,
Activity  activity 
)
synchronized void com.example.wondercoll.DatabaseConnection.close ( )
void com.example.wondercoll.DatabaseConnection.deleteAll ( )
Card com.example.wondercoll.DatabaseConnection.getCardFromDatabase ( ItemPageActivity  act,
int  id 
)
void com.example.wondercoll.DatabaseConnection.onCreate ( SQLiteDatabase  db)
void com.example.wondercoll.DatabaseConnection.onOpen ( SQLiteDatabase  db)
void com.example.wondercoll.DatabaseConnection.onUpgrade ( SQLiteDatabase  db,
int  oldVersion,
int  newVersion 
)
void com.example.wondercoll.DatabaseConnection.populateListViewWithCards ( Activity  a,
String  q 
)

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