Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp 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.altinn.apps.fisher.db; /**// w w w . j a v a2 s . c o m * A Global helper interface for all type of DBhelper to achieve abstraction * This interface offers to implement functionality by each table in their own constraints * */ import android.database.sqlite.SQLiteDatabase; public interface IDBHelper { /** * On create of table this method will be invoked by DataBaseHelper * So that respective table can be created as per their skeleton and * Remove dependency from DataBaseHelper * * This is delegated by DataBaseHelper class when Android framework called onCreate method SQLiteOpenHelper * @param db */ public void onCreate(SQLiteDatabase db); /** * This method invoked by DataBaseHelper and operation executed on respective table if onUpgared called by android framework * So that respective table can be upgraded as per their skeleton/constraints and * Remove dependency from DataBaseHelper * This is delegated by DataBaseHelper class when Android framework called onUpgrade method SQLiteOpenHelper * * @param db * @param arg1 * @param arg2 */ public void onUpgrade(SQLiteDatabase db, int arg1, int arg2); }