示例#1
0
 public DataBase open() {
   db = userdatabse.getWritableDatabase();
   userdatabse.onCreate(db);
   Log.d("DB_read", "DB open() :" + db.toString());
   return this;
 }
示例#2
0
 public void clear_all() {
   db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
   Log.d("DB_read", "db clear_all() : drop table and create again");
   userdatabse.onCreate(db);
   db_dump();
 }
示例#3
0
 @Override
 public void clean() {
   db.execSQL("DROP TABLE IF EXISTS " + getTableName());
   dbHelper.onCreate(db);
 }