net.sqlcipher.database.SQLiteDatabase.CursorFactory Java Examples

The following examples show how to use net.sqlcipher.database.SQLiteDatabase.CursorFactory. 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
Source File: SQLCipherOpenHelper.java    From Zom-Android-XMPP with GNU General Public License v3.0 5 votes vote down vote up
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 File: SQLiteDatabaseNative.java    From commcare-android with 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 File: SQLCipherOpenHelper.java    From bitseal with 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 File: SQLiteOpenHelper.java    From kripton with 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 File: SQLiteOpenHelper.java    From kripton with 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 File: SQLiteOpenHelper.java    From kripton with 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 File: SQLiteDatabaseNative.java    From commcare-android with 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 File: SQLiteDatabaseNative.java    From commcare-android with 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 File: SQLiteDatabaseNative.java    From commcare-android with 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 File: SQLiteDatabaseNative.java    From commcare-android with 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");
}