Code example for SQLiteStatement

Methods: bindNull, clearBindings, executeInsert

0
            throws SQLException { 
        Budget ac = (Budget) entity;
 
        SQLiteStatement stmt = database.compileStatement(getInsertSql());
 
        stmt.clearBindings();
 
        stmt.bindNull(1);
        safeBindString(stmt, 2, ac.getName());
        safeBindInt(stmt, 3, ac.getType());
 
        Long id = stmt.executeInsert();
 
        ac.setId(id);
 
        return id;
    } 
 
    @Override 
    public void doUpdate(SQLiteDatabase database, FManEntity entity)
            throws SQLException {