Java Code Examples for net.sqlcipher.database.SQLiteDatabase.CursorFactory

The following examples show how to use net.sqlcipher.database.SQLiteDatabase.CursorFactory. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public SQLCipherOpenHelper(CacheWordHandler cacheWord, Context context, String name,
        CursorFactory factory, int version) {
    super(context, name, factory, version, new SQLCipherV3MigrationHook(context));
    if (cacheWord == null)
        throw new IllegalArgumentException("CacheWordHandler is null");
    mHandler = cacheWord;
}
 
Example 2
Source Project: commcare-android   Source File: SQLiteDatabaseNative.java    License: Apache License 2.0 5 votes vote down vote up
@Implementation
public Cursor queryWithFactory(CursorFactory cursorFactory,
                               boolean distinct, String table, String[] columns, String selection,
                               String[] selectionArgs, String groupBy, String having,
                               String orderBy, String limit) {
    throw new UnsupportedOperationException("Can't perform queries with a factor in the mock db");
}
 
Example 3
Source Project: bitseal   Source File: SQLCipherOpenHelper.java    License: GNU General Public License v3.0 5 votes vote down vote up
public SQLCipherOpenHelper(CacheWordHandler cacheWordHandler, Context context, String name, CursorFactory factory, int version) 
  {
      super(context, name, factory, version, new SQLCipherV3MigrationHook(context));
      
      if (cacheWordHandler == null)
      {
      	throw new IllegalArgumentException("CacheWordHandler is null");
      }
      
mCacheWordHandler = cacheWordHandler;
  }
 
Example 4
Source Project: kripton   Source File: SQLiteOpenHelper.java    License: Apache License 2.0 4 votes vote down vote up
public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) {
	throw new RuntimeException("Not implemented");
}
 
Example 5
Source Project: kripton   Source File: SQLiteOpenHelper.java    License: Apache License 2.0 4 votes vote down vote up
public SQLiteOpenHelper(Context context, String name, CursorFactory factory,
                        int version, SQLiteDatabaseHook hook) {
	throw new RuntimeException("Not implemented");
}
 
Example 6
Source Project: kripton   Source File: SQLiteOpenHelper.java    License: Apache License 2.0 4 votes vote down vote up
public SQLiteOpenHelper(Context context, String name, CursorFactory factory,
                        int version, SQLiteDatabaseHook hook, DatabaseErrorHandler errorHandler) {
}
 
Example 7
Source Project: commcare-android   Source File: SQLiteDatabaseNative.java    License: Apache License 2.0 4 votes vote down vote up
public void __constructor__(String path, char[] password, CursorFactory factory, int flags) {
    db = android.database.sqlite.SQLiteDatabase.openDatabase(path, null, flags);
}
 
Example 8
Source Project: commcare-android   Source File: SQLiteDatabaseNative.java    License: Apache License 2.0 4 votes vote down vote up
public void __constructor__(String path, char[] password, CursorFactory factory, int flags, SQLiteDatabaseHook hook) {
    db = android.database.sqlite.SQLiteDatabase.openDatabase(path, null, flags);
}
 
Example 9
Source Project: commcare-android   Source File: SQLiteDatabaseNative.java    License: Apache License 2.0 4 votes vote down vote up
public void __constructor__(String path, CursorFactory factory, int flags, DatabaseErrorHandler errorHandler) {
    db = android.database.sqlite.SQLiteDatabase.openDatabase(path, null, flags);
}
 
Example 10
Source Project: commcare-android   Source File: SQLiteDatabaseNative.java    License: Apache License 2.0 4 votes vote down vote up
@Implementation
public Cursor rawQueryWithFactory(CursorFactory arg0, String arg1,
                                  String[] arg2, String arg3) {
    throw new UnsupportedOperationException("Can't perform queries with a factor in the mock db");
}