/** * Content values. * * @return the kripton content values */ protected KriptonContentValues contentValues() { return _context.contentValues(null); }
/** * Content values for content provider. * * @param values the values * @return the kripton content values */ protected KriptonContentValues contentValuesForContentProvider(ContentValues values) { return _context.contentValuesForContentProvider(values); }
/** * Content values for update. * * @return the kripton content values */ protected KriptonContentValues contentValuesForUpdate() { return _context.contentValuesForUpdate(null); }
/** * Retrieve SQLite database instance. * * @return the SQ lite database */ protected SQLiteDatabase database() { return _context.database(); }
/** * Sql builder. * * @return the string builder */ protected StringBuilder sqlBuilder() { return _context.sqlBuilder(); }
/** * Retrieve SQLite database instance. * * @return the SQ lite database */ protected SQLiteDatabase database() { return _context.database(); }
/** * Sql builder. * * @return the string builder */ protected StringBuilder sqlBuilder() { return _context.sqlBuilder(); }
/** * 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; }
/** * Content values for update. * * @param compiledStatement the compiled statement * @return the kripton content values */ protected KriptonContentValues contentValuesForUpdate(SQLiteStatement compiledStatement) { return _context.contentValuesForUpdate(compiledStatement); }
/** * Content values for content provider. * * @param values the values * @return the kripton content values */ protected KriptonContentValues contentValuesForContentProvider(ContentValues values) { return _context.contentValuesForContentProvider(values); }
/** * Content values. * * @return the kripton content values */ protected KriptonContentValues contentValues() { return _context.contentValues(null); }
/** * 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; }
/** * Content values for update. * * @param compiledStatement the compiled statement * @return the kripton content values */ protected KriptonContentValues contentValuesForUpdate(SQLiteStatement compiledStatement) { return _context.contentValuesForUpdate(compiledStatement); }
/** * 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(); } }
/** * Content values for update. * * @return the kripton content values */ protected KriptonContentValues contentValuesForUpdate() { return _context.contentValuesForUpdate(null); }
/** * 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(); } }