Back to project page Android_Yellow_Pages_App_Content_Provider.
The source code is released under:
Apache License
If you think the Android project Android_Yellow_Pages_App_Content_Provider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tddrampup.databases; /* w w w . ja va2 s. c om*/ import android.database.sqlite.SQLiteDatabase; import android.util.Log; /** * Created by: WX009-PC * on: 2/27/14. */ public class PreviousQueryTable { public static final String PREVIOUS_QUERY_TABLE = "previousQueryTable"; public static final String COLUMN_ID = "_id"; public static final String COLUMN_WHAT = "whatQuery"; public static final String COLUMN_WHERE = "whereQuery"; private static final String DATABASE_CREATE = "create table " + PREVIOUS_QUERY_TABLE + "(" + COLUMN_ID + " integer primary key autoincrement, " + COLUMN_WHAT + " text not null, " + COLUMN_WHERE + " text not null" + ");"; public static void onCreate(SQLiteDatabase db) { db.execSQL(DATABASE_CREATE); } public static void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(ListingsTable.class.getName(), "Upgrading database from version " + oldVersion + " to " + newVersion + ", which will destroy all old data"); db.execSQL("DROP TABLE IF EXISTS " + PREVIOUS_QUERY_TABLE); onCreate(db); } }