Commit | Line | Data |
---|---|---|
bdd8f09c PT |
1 | package ro.ieval.unical; |
2 | ||
3 | import android.content.Context; | |
4 | import android.database.SQLException; | |
5 | import android.database.sqlite.SQLiteDatabase; | |
6 | ||
7 | public class DatabaseInteract { | |
8 | private SQLiteDatabase database; | |
9 | private MySQLiteHelper dbHelper; | |
10 | ||
11 | public DatabaseInteract(Context context) { | |
12 | dbHelper = new MySQLiteHelper(context); | |
13 | } | |
14 | ||
15 | public void open() throws SQLException { | |
16 | database=dbHelper.getWritableDatabase(); | |
17 | } | |
18 | ||
19 | public void close() { | |
20 | dbHelper.close(); | |
21 | } | |
22 | ||
23 | //Add event | |
24 | //Delete event | |
25 | //Search event | |
26 | } |