]>
iEval git - unical.git/blob - src/ro/ieval/unical/AlarmOpenHelper.java
1 package ro
.ieval
.unical
;
3 import android
.content
.Context
;
4 import android
.database
.sqlite
.SQLiteDatabase
;
5 import android
.database
.sqlite
.SQLiteOpenHelper
;
7 final class AlarmOpenHelper
extends SQLiteOpenHelper
{
8 public static final String TIME
= "time";
9 public static final String EVENT
= "event";
10 public static final String TABLE
= "alarms";
12 private static final int VERSION
= 1;
13 private static final String DB
= "alarms";
15 AlarmOpenHelper (final Context context
) {
16 super(context
, DB
, null, VERSION
);
20 public void onCreate(final SQLiteDatabase db
){
21 db
.execSQL("CREATE TABLE " + TABLE
+ " (" +
22 TIME
+ " INTEGER PRIMARY KEY, " +
23 EVENT
+ " INTEGER NOT NULL);");
27 public void onUpgrade(final SQLiteDatabase db
, final int oldVersion
, final int newVersion
){
This page took 0.041604 seconds and 4 git commands to generate.