/** * Use this to initialize an encrypted SQLCipher database. * * @see #onCreate(Database) * @see #onUpgrade(Database, int, int) */ public Database getEncryptedWritableDb(String password) { EncryptedHelper encryptedHelper = checkEncryptedHelper(); return encryptedHelper.wrap(encryptedHelper.getWritableDatabase(password)); }
/** * Use this to initialize an encrypted SQLCipher database. * * @see #onCreate(Database) * @see #onUpgrade(Database, int, int) */ public Database getEncryptedReadableDb(String password) { EncryptedHelper encryptedHelper = checkEncryptedHelper(); return encryptedHelper.wrap(encryptedHelper.getReadableDatabase(password)); }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"TO_ONE_TARGET2\""; db.execSQL(sql); }
/** * Like {@link #getReadableDatabase()}, but returns a greenDAO abstraction of the database. * The backing DB is an standard {@link SQLiteDatabase}. */ public Database getReadableDb() { return wrap(getReadableDatabase()); }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"JOIN_MANY_TO_DATE_ENTITY\""; db.execSQL(sql); }
/** * Use this to initialize an encrypted SQLCipher database. * * @see #onCreate(Database) * @see #onUpgrade(Database, int, int) */ public Database getEncryptedWritableDb(char[] password) { EncryptedHelper encryptedHelper = checkEncryptedHelper(); return encryptedHelper.wrap(encryptedHelper.getWritableDatabase(password)); }
/** * Use this to initialize an encrypted SQLCipher database. * * @see #onCreate(Database) * @see #onUpgrade(Database, int, int) */ public Database getEncryptedReadableDb(char[] password) { EncryptedHelper encryptedHelper = checkEncryptedHelper(); return encryptedHelper.wrap(encryptedHelper.getReadableDatabase(password)); }
/** Creates the underlying database table. */ public static void createTable(Database db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "\"TO_MANY_TARGET2\" (" + // "\"_id\" INTEGER PRIMARY KEY ," + // 0: id "\"FK_ID\" INTEGER);"); // 1: fkId }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"INDEXED_STRING_ENTITY\""; db.execSQL(sql); }
/** Creates the underlying database table. */ public static void createTable(Database db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "\"RELATION_SOURCE2\" (" + // "\"_id\" INTEGER PRIMARY KEY ," + // 0: id "\"TO_ONE_ID\" INTEGER);"); // 1: toOneId }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"TREE_ENTITY\""; db.execSQL(sql); }
/** Creates the underlying database table. */ public static void createTable(Database db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "\"AUTOINCREMENT_ENTITY\" (" + // "\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT );"); // 0: id }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"ORDER TRANSACTION GROUP BY\""; db.execSQL(sql); }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"AUTOINCREMENT_ENTITY\""; db.execSQL(sql); }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"ABCDEF_ENTITY\""; db.execSQL(sql); }
/** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"EXTENDS_IMPLEMENTS_ENTITY\""; db.execSQL(sql); }