@Override protected KriptonContentValues initialValue() { return new KriptonContentValues(); }
@Override public KriptonContentValues contentValues(SQLiteStatement compiledStatement) { this.contentValues.clear(compiledStatement); return this.contentValues; }
/** * 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(); }
/** * Clear. * * @param values the values */ public void clear(ContentValues values) { clear(); this.values = values; }
/** * 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(); }
@Override protected KriptonContentValues initialValue() { return new KriptonContentValues(); }
@Override public KriptonContentValues contentValues(SQLiteStatement compiledStatement) { this.contentValues.clear(compiledStatement); return this.contentValues; }
/** * 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(); }
/** * Instantiates a new SQL context in session impl. * * @param dataSource the data source */ public SQLContextInSessionImpl(AbstractDataSource dataSource) { super(true); this.dataSource=dataSource; this.contentValues=new KriptonContentValues(); this.contentValuesForUpdate=new KriptonContentValues(); this.sqlBuilder=new StringBuilder(); }
@Override public KriptonContentValues contentValuesForUpdate(SQLiteStatement compiledStatement) { this.contentValuesForUpdate.clear(compiledStatement); return this.contentValuesForUpdate; }
/** * 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(); } }
/** * Instantiates a new SQL context in session impl. * * @param dataSource the data source */ public SQLContextInSessionImpl(AbstractDataSource dataSource) { super(true); this.dataSource=dataSource; this.contentValues=new KriptonContentValues(); this.contentValuesForUpdate=new KriptonContentValues(); this.sqlBuilder=new StringBuilder(); }
/** * Clear. * * @param values the values */ public void clear(ContentValues values) { clear(); this.values = values; }
/** * 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(); } }
@Override public KriptonContentValues contentValuesForContentProvider(ContentValues values) { this.contentValues.clear(values); return this.contentValues; }
/** * 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(); } }
@Override public KriptonContentValues contentValuesForUpdate(SQLiteStatement compiledStatement) { this.contentValuesForUpdate.clear(compiledStatement); return this.contentValuesForUpdate; }
/** * 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(); } }
@Override public KriptonContentValues contentValuesForContentProvider(ContentValues values) { this.contentValues.clear(values); return this.contentValues; }