Back to project page android-mvc-framework.
The source code is released under:
Apache License
If you think the Android project android-mvc-framework 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.android_mvc.framework.db.schema; /*from w w w. jav a2s.co m*/ import com.android_mvc.framework.common.FWUtil; import android.database.sqlite.SQLiteDatabase; /** * AP??????????????????????????????????? * @author id:language_and_engineering * */ public abstract class AbstractSchemaDefinition { private SQLiteDatabase db; /** * AP???????????????????? */ protected abstract void define_tables(); /** * FW????????????????????????????? */ public void createAll(SQLiteDatabase db) { this.db = db; // TODO:???????????????????????????????????????? // SQLite????????????????DDL??????????????????????????????????????????????? // http://old.nabble.com/DDL-statements-in-transactions-td17785928.html //TxnScope upper_scope = null; //new TxnScope( db, upper_scope ){ // @Override // protected void handleDB() // { FWUtil.d("????????????????"); define_tables(); FWUtil.d("????????????????"); // } //}.execute(); } /** * DB?????? */ public SQLiteDatabase getDB() { return db; } }