package com.dreamfighter.android.manager;

import android.content.Context;

import java.util.Map;

public abstract class Sqlite3Manager extends SqliteManager{

	public Sqlite3Manager(Context context, String databaseName,
                          int databaseVersion, Class<?> classDefinition) {
		super(databaseName,databaseVersion, context, classDefinition);
	}

	@Override
	public Map<String, String> colums() {
		return COLUMNS;
	}

}

@@ -67,16 +67,105 @@
 Context;
+%0Aimport android.content.SharedPreferences;%0Aimport android.database.sqlite.SQLiteDatabase;
 %0A%0Aimport
@@ -447,82 +447,580 @@
 n);%0A
-%09%7D%0A%0A%09@Override%0A%09public Map%3CString, String%3E colums() %7B%0A%09%09return COLUMNS;%0A%09%7D%0A
+%0A%09%09SharedPreferences pref = context.getSharedPreferences(%22DATABASE_PREF%22,0);%0A%09%09if(databaseVersion%3Epref.getInt(tableName+%22-version%22,1))%7B%0A%09%09%09onUpgrade(pref.getInt(tableName+%22-version%22,1),databaseVersion);%0A%09%09%09SharedPreferences.Editor editor = pref.edit();%0A%09%09%09editor.putInt(tableName+%22-version%22,databaseVersion);%0A%09%09%09editor.commit();%0A%09%09%7D%0A%09%7D%0A%0A%09public abstract void onUpgrade(int oldVersion,int newVersion);%0A%0A%09@Override%0A%09public Map%3CString, String%3E colums() %7B%0A%09%09return COLUMNS;%0A%09%7D%0A%0A    @Override%0A    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) %7B%0A%0A    %7D
 %0A%7D%0A

add sqlite3manager