Back to project page philippine-income-tax-android.
The source code is released under:
GNU General Public License
If you think the Android project philippine-income-tax-android 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.chrisbjr.android.philippineincometax.db; /*ww w .j a va2 s. c om*/ import android.content.Context; import com.j256.ormlite.android.apptools.OpenHelperManager; public class DatabaseManager { private DatabaseHelper databaseHelper = null; // gets a helper once one is created ensures it doesnt create a new one public DatabaseHelper getHelper(Context context) { if (databaseHelper == null) { databaseHelper = OpenHelperManager.getHelper(context, DatabaseHelper.class); } return databaseHelper; } // releases the helper once usages has ended public void releaseHelper(DatabaseHelper helper) { if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } } }