Android Open Source - storage_room_android_example Restaurants Database Helper From Project Back to project page storage_room_android_example .
License The source code is released under:
Copyright (c) 2011 Till Simon
http://www.tillsimon.com
mail@tillsimon.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation f...
If you think the Android project storage_room_android_example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package com.tillsimon.storageroom_example.model.database;
/ / w w w . j a v a 2 s . c o m
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class RestaurantsDatabaseHelper extends SQLiteOpenHelper {
private static final String DB_NAME = "restaurants.db" ;
private static final int DB_VERSION = 1;
public RestaurantsDatabaseHelper(Context context) {
super (context, DB_NAME, null, DB_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(RestaurantsTableInterface.SQL_CREATE);
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldDb, int newDb) {
db.execSQL("DROP TABLE IF EXISTS " + RestaurantsTableInterface.TABLE_NAME);
onCreate(db);
}
}
Java Source Code List com.readystatesoftware.mapviewballoons.BalloonItemizedOverlay.java com.readystatesoftware.mapviewballoons.BalloonOverlayView.java com.tillsimon.storageroom_example.activities.RestaurantDetailActivity.java com.tillsimon.storageroom_example.activities.RestaurantListViewActivity.java com.tillsimon.storageroom_example.activities.RestaurantMapActivity.java com.tillsimon.storageroom_example.activities.maphelper.RestaurantOverlayItem.java com.tillsimon.storageroom_example.activities.maphelper.RestaurantsOverlay.java com.tillsimon.storageroom_example.application.AppConfigInterface.java com.tillsimon.storageroom_example.application.RestaurantApplication.java com.tillsimon.storageroom_example.model.database.RestaurantsDatabaseHelper.java com.tillsimon.storageroom_example.model.database.RestaurantsTableInterface.java com.tillsimon.storageroom_example.model.webconnect.AnnouncementDownloaderDelegate.java com.tillsimon.storageroom_example.model.webconnect.AnnouncementDownloader.java com.tillsimon.storageroom_example.model.webconnect.RestaurantsDownloaderDelegate.java com.tillsimon.storageroom_example.model.webconnect.RestaurantsDownloader.java