Java Code Examples for net.sqlcipher.DatabaseErrorHandler

The following examples show how to use net.sqlcipher.DatabaseErrorHandler. 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
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Equivalent to openDatabase(path, password, factory, CREATE_IF_NECESSARY,
 * databaseHook).
 */
public static SQLiteDatabase openOrCreateDatabase(File file, String password, CursorFactory factory,
		SQLiteDatabaseHook databaseHook, DatabaseErrorHandler errorHandler) {
	throw (new RuntimeException("Not implements"));
}
 
Example 2
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 4 votes vote down vote up
public static SQLiteDatabase openOrCreateDatabase(String path, String password, CursorFactory factory,
		SQLiteDatabaseHook databaseHook, DatabaseErrorHandler errorHandler) {
	throw (new RuntimeException("Not implements"));
}
 
Example 3
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 4 votes vote down vote up
public static SQLiteDatabase openOrCreateDatabase(String path, char[] password, CursorFactory factory,
		SQLiteDatabaseHook databaseHook, DatabaseErrorHandler errorHandler) {
	throw (new RuntimeException("Not implements"));
}
 
Example 4
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 4 votes vote down vote up
public static SQLiteDatabase openOrCreateDatabase(String path, byte[] password, CursorFactory factory,
		SQLiteDatabaseHook databaseHook, DatabaseErrorHandler errorHandler) {
	throw (new RuntimeException("Not implements"));
}
 
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, DatabaseErrorHandler errorHandler) {
}
 
Example 6
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 7
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Open the database according to the flags {@link #OPEN_READWRITE}
 * {@link #OPEN_READONLY} {@link #CREATE_IF_NECESSARY} and/or
 * {@link #NO_LOCALIZED_COLLATORS} with optional hook to run on pre/post key
 * events.
 *
 * <p>
 * Sets the locale of the database to the the system's current locale. Call
 * {@link #setLocale} if you would like something else.
 * </p>
 *
 * @param path
 *            to database file to open and/or create
 * @param password
 *            to use to open and/or create database file
 * @param factory
 *            an optional factory class that is called to instantiate a
 *            cursor when query is called, or null for default
 * @param flags
 *            to control database access mode and other options
 * @param hook
 *            to run on pre/post key events
 * @param errorHandler
 *            The {@link DatabaseErrorHandler} to be used when sqlite
 *            reports database corruption (or null for default).
 *
 * @return the newly opened database
 *
 * @throws SQLiteException
 *             if the database cannot be opened
 * @throws IllegalArgumentException
 *             if the database path is null
 */
public static SQLiteDatabase openDatabase(String path, String password, CursorFactory factory, int flags,
		SQLiteDatabaseHook hook, DatabaseErrorHandler errorHandler) {
	throw (new RuntimeException("Not implements"));
}
 
Example 8
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Open the database according to the flags {@link #OPEN_READWRITE}
 * {@link #OPEN_READONLY} {@link #CREATE_IF_NECESSARY} and/or
 * {@link #NO_LOCALIZED_COLLATORS} with optional hook to run on pre/post key
 * events.
 *
 * <p>
 * Sets the locale of the database to the the system's current locale. Call
 * {@link #setLocale} if you would like something else.
 * </p>
 *
 * @param path
 *            to database file to open and/or create
 * @param password
 *            to use to open and/or create database file (char array)
 * @param factory
 *            an optional factory class that is called to instantiate a
 *            cursor when query is called, or null for default
 * @param flags
 *            to control database access mode and other options
 * @param hook
 *            to run on pre/post key events (may be null)
 * @param errorHandler
 *            The {@link DatabaseErrorHandler} to be used when sqlite
 *            reports database corruption (or null for default).
 *
 * @return the newly opened database
 *
 * @throws SQLiteException
 *             if the database cannot be opened
 * @throws IllegalArgumentException
 *             if the database path is null
 */
public static SQLiteDatabase openDatabase(String path, char[] password, CursorFactory factory, int flags,
		SQLiteDatabaseHook hook, DatabaseErrorHandler errorHandler) {
	throw (new RuntimeException("Not implements"));
}
 
Example 9
Source Project: kripton   Source File: SQLiteDatabase.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Open the database according to the flags {@link #OPEN_READWRITE}
 * {@link #OPEN_READONLY} {@link #CREATE_IF_NECESSARY} and/or
 * {@link #NO_LOCALIZED_COLLATORS} with optional hook to run on pre/post key
 * events.
 *
 * <p>
 * Sets the locale of the database to the the system's current locale. Call
 * {@link #setLocale} if you would like something else.
 * </p>
 *
 * @param path
 *            to database file to open and/or create
 * @param password
 *            to use to open and/or create database file (byte array)
 * @param factory
 *            an optional factory class that is called to instantiate a
 *            cursor when query is called, or null for default
 * @param flags
 *            to control database access mode and other options
 * @param hook
 *            to run on pre/post key events (may be null)
 * @param errorHandler
 *            The {@link DatabaseErrorHandler} to be used when sqlite
 *            reports database corruption (or null for default).
 *
 * @return the newly opened database
 *
 * @throws SQLiteException
 *             if the database cannot be opened
 * @throws IllegalArgumentException
 *             if the database path is null
 */
public static SQLiteDatabase openDatabase(String path, byte[] password, CursorFactory factory, int flags,
		SQLiteDatabaseHook hook, DatabaseErrorHandler errorHandler) {

	throw (new RuntimeException("Not implements"));
}