/** * Retrieve SQLite database instance. * * @return the SQ lite database */ protected SQLiteDatabase database() { return _context.database(); }
/** * Retrieve SQLite database instance. * * @return the SQ lite database */ protected SQLiteDatabase database() { return _context.database(); }
/** * Compile. * * @param context the context * @param sql the sql * @return the SQ lite statement */ public static SQLiteStatement compile(SQLContext context, String sql) { SQLiteStatement ps = context.database().compileStatement(sql); return ps; }
/** * Compile. * * @param context the context * @param sql the sql * @return the SQ lite statement */ public static SQLiteStatement compile(SQLContext context, String sql) { SQLiteStatement ps = context.database().compileStatement(sql); return ps; }
/** * Update delete. * * @param context the context * @param sql the sql * @param contentValues the content values * @return the int */ public static int updateDelete(SQLContext context, String sql, KriptonContentValues contentValues) { SQLiteStatement ps = context.database().compileStatement(sql); try { contentValues.bind(ps); return ps.executeUpdateDelete(); } finally { ps.close(); } }
/** * Insert. * * @param context the context * @param sql the sql * @param contentValues the content values * @return the long */ public static long insert(SQLContext context, String sql, KriptonContentValues contentValues) { SQLiteStatement ps = context.database().compileStatement(sql); try { contentValues.bind(ps); return ps.executeInsert(); } finally { ps.close(); } }
/** * Update delete. * * @param context the context * @param sql the sql * @param contentValues the content values * @return the int */ public static int updateDelete(SQLContext context, String sql, KriptonContentValues contentValues) { SQLiteStatement ps = context.database().compileStatement(sql); try { contentValues.bind(ps); return ps.executeUpdateDelete(); } finally { ps.close(); } }
/** * Insert. * * @param context the context * @param sql the sql * @param contentValues the content values * @return the long */ public static long insert(SQLContext context, String sql, KriptonContentValues contentValues) { SQLiteStatement ps = context.database().compileStatement(sql); try { contentValues.bind(ps); return ps.executeInsert(); } finally { ps.close(); } }