Java 类android.database.sqlite.SQLiteDatabase.CursorFactory 实例源码

项目:justintrain-client-android    文件:SQLiteAssetHelper.java   
/**
 * Create a helper object to create, open, and/or manage a database in
 * a specified location.
 * This method always returns very quickly.  The database is not actually
 * created or opened until one of {@link #getWritableDatabase} or
 * {@link #getReadableDatabase} is called.
 *
 * @param context to use to open or create the database
 * @param name of the database file
 * @param storageDirectory to store the database file upon creation; caller must
 * ensure that the specified absolute path is available and can be written to
 * @param factory to use for creating cursor objects, or null for the default
 * @param version number of the database (starting at 1); if the database is older,
 * SQL file(s) contained within the application assets folder will be used to
 * upgrade the database
 */
public SQLiteAssetHelper(Context context, String name, String storageDirectory, CursorFactory factory, int version, DatabaseErrorHandler errorHandler) {
    super(context, name, factory, version, errorHandler);

    if (version < 1) throw new IllegalArgumentException("Version must be >= 1, was " + version);
    if (name == null) throw new IllegalArgumentException("Database name cannot be null");

    mContext = context;
    mName = name;
    mFactory = factory;
    mNewVersion = version;

    mAssetPath = ASSET_DB_PATH + "/" + name;
    if (storageDirectory != null) {
        mDatabasePath = storageDirectory;
    } else {
        mDatabasePath = context.getApplicationInfo().dataDir + "/databases";
    }
    mUpgradePathFormat = ASSET_DB_PATH + "/" + name + "_upgrade_%s-%s.sql";
}
项目:aos-MediaLib    文件:DeleteOnDowngradeSQLiteOpenHelper.java   
public DeleteOnDowngradeSQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) {
    super(context, name, factory, version);
    mDatabaseFile = context.getDatabasePath(name);
}
项目:aos-MediaLib    文件:DeleteOnDowngradeSQLiteOpenHelper.java   
public DeleteOnDowngradeSQLiteOpenHelper(Context context, String name, CursorFactory factory, int version,
        DatabaseErrorHandler errorHandler) {
    super(context, name, factory, version, errorHandler);
    mDatabaseFile = context.getDatabasePath(name);
}
项目:DoList    文件:CreateDBActivity.java   
public void createdb(View v) {
    CursorFactory factory = null;
    int version = 1;// �Զ�����1��ʼ
    String name = "db.db";// ���ݿ���
    Context Context = v.getContext();
    // ʹ��sqlliteopenhelpeʵ������ȡһ��sqldatabase
    SQLiteOpenHelper helper = new MySQLiteOpenHelper(Context, name,
            factory, version);
    SQLiteDatabase db = helper.getWritableDatabase();

}
项目:Ency    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:Shopping_List    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:rongyunDemo    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
    mContext = context;
}
项目:NotifyTools    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:NotifyTools    文件:DaoDBCiMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:NotifyTools    文件:DaoDBCiMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:NotifyTools    文件:DaoDBMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:NotifyTools    文件:DaoDBMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:NotifyTools    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:NotifyTools    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:GitHub    文件:RobustSQLiteOpenHelper.java   
public RobustSQLiteOpenHelper(Context context, String name,
        CursorFactory factory, int version) {
    super(context, name, factory, version);
}
项目:GitHub    文件:DBHelper.java   
public DBHelper(Context context, String name, CursorFactory factory, int version) {
    super(context, name, factory, version);
}
项目:GitHub    文件:DatabaseOpenHelper.java   
public DatabaseOpenHelper(Context context, String name, CursorFactory factory, int version) {
    super(context, name, factory, version);
    this.context = context;
    this.name = name;
    this.version = version;
}
项目:KingTV    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:GitHub    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:AC2RD    文件:DatabaseProvider.java   
public Database(Context context, String name, CursorFactory factory, int version)
{
    super(context, name, factory, version);
}
项目:GitHub    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:GitHub    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:GitHub    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:smart_plan    文件:DbHelperManger.java   
public DbHelper(Context context, String name, CursorFactory factory, int version) {
    super(context, name, factory, version);
}
项目:NeiHanDuanZiTV    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:FaceRecognition    文件:DBHelper.java   
public DBHelper(Context context, String name, CursorFactory factory, int version) {
    //必须通过super 调用父类的构造函数
    super(context, name, factory, version);
}
项目:rongyunDemo    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:cniao5    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:BeautifulGirls    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:BeautifulGirls    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:LaunchEnr    文件:NoLocaleSqliteContext.java   
@Override
public SQLiteDatabase openOrCreateDatabase(
        String name, int mode, CursorFactory factory, DatabaseErrorHandler errorHandler) {
    return super.openOrCreateDatabase(
            name, mode | Context.MODE_NO_LOCALIZED_COLLATORS, factory, errorHandler);
}
项目:Android-Code-Demos    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:Android-Code-Demos    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:Mobike    文件:DBHelper.java   
public DBHelper(Context context, String name, CursorFactory factory, int version) {
    super(context, name, factory, version);
}
项目:PeSanKita-android    文件:DatabaseFactory.java   
public DatabaseHelper(Context context, String name, CursorFactory factory, int version) {
  super(context, name, factory, version);
}
项目:KUtils    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:KUtils    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:Hitalk    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}
项目:Hitalk    文件:DaoMaster.java   
public DevOpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory);
}
项目:greendao_expand    文件:DaoMaster.java   
public OpenHelper(Context context, String name, CursorFactory factory) {
    super(context, name, factory, SCHEMA_VERSION);
}