/** * Insert. * * @param ps the ps * @param contentValues the content values * @return the long */ public static long insert(SQLiteStatement ps, KriptonContentValues contentValues) { contentValues.bind(ps); return ps.executeInsert(); }
/** * Update delete. * * @param ps the ps * @param contentValues the content values * @return the int */ public static int updateDelete(SQLiteStatement ps, KriptonContentValues contentValues) { contentValues.bind(ps); return ps.executeUpdateDelete(); }
/** * Insert. * * @param ps the ps * @param contentValues the content values * @return the long */ public static long insert(SQLiteStatement ps, KriptonContentValues contentValues) { contentValues.bind(ps); return ps.executeInsert(); }
/** * Update delete. * * @param ps the ps * @param contentValues the content values * @return the int */ public static int updateDelete(SQLiteStatement ps, KriptonContentValues contentValues) { contentValues.bind(ps); return ps.executeUpdateDelete(); }
/** * 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(); } }
/** * 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(); } }