public class DBContentProvider extends SQLiteOpenHelper
| Constructor and Description |
|---|
DBContentProvider(Context context) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<DBRowItem> |
getItemsList(int idMenu) |
ArrayList<DBRowMenus> |
getMenuTitles(boolean isDrinks) |
void |
onCreate(SQLiteDatabase db) |
void |
onUpgrade(SQLiteDatabase db,
int oldVersion,
int newVersion) |
void |
syncCategories(JSONArray jArray) |
void |
syncConfig(JSONArray jArray) |
void |
syncImages(String filename,
int id) |
void |
syncImagesTable(JSONArray jArray) |
void |
syncItems(JSONArray jArray) |
void |
syncMenulists(JSONArray jArray) |
void |
syncMenus(JSONArray jArray) |
close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onDowngrade, onOpen, setWriteAheadLoggingEnabledpublic DBContentProvider(Context context)
public void onCreate(SQLiteDatabase db)
onCreate in class SQLiteOpenHelperpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
onUpgrade in class SQLiteOpenHelperpublic ArrayList<DBRowMenus> getMenuTitles(boolean isDrinks)
public void syncMenus(JSONArray jArray)
jArray - public void syncItems(JSONArray jArray)
public void syncCategories(JSONArray jArray)
public void syncConfig(JSONArray jArray)
public void syncMenulists(JSONArray jArray)
public void syncImagesTable(JSONArray jArray)
public void syncImages(String filename, int id)