Code example for SQLiteDatabase

Methods: rawQuery

0
			return data;
		} 
		 
		@Override 
		public void onCreate(SQLiteDatabase db) {
			db.rawQuery("CREATE TABLE " + DB.TABLE_NAME + " (\n"
					+ DB.ID + " INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,\n"
					+ DB.URI + " TEXT NOT NULL,\n"
					+ DB.SIZE + " INTEGER NOT NULL,\n"
					+ DB.MIME + " TEXT DEFUALT NULL,\n"
					+ DB.STATUS + " INTEGER NOT NULL,\n"
					+ DB.RATE + " INTEGER NOT NULL,\n"
					+ DB.PRIORITY + " INTEGER NOT NULL,\n"
					+ DB.BYPASS_MOBILE_RESTRICTION + " INTEGER NOT NULL,\n"
					+ DB.PERSIT_PATH + " TEXT,\n"
					+ DB.DELETE_AFTER_PERSIST + " INTEGER NOT NULL,\n"
					+ DB.ADD_TIME + " INTEGER NOT NULL,\n"
					+ DB.DOWNLOAD_START_TIME + " INTEGER NOT NULL,\n"
					+ DB.FINISH_TIME + " INTEGER NOT NULL,\n"
					+ DB.CHANGE_ATTEMPTS + " INTEGER NOT NULL,\n"
					+ DB.CHANGE_ATTEMPT_COUNT + " INTEGER NOT NULL,\n"