Code example for Connection

Methods: prepareStatement

0
	public void init(SQLiteDatabase db, String sql) {
	 mDatabase = db;
	 connection = Robolectric.shadowOf(db).getConnection();
 
	 try { 
			actualDBstatement = connection.prepareStatement(sql,
					Statement.RETURN_GENERATED_KEYS);
		} catch (SQLException e) {
			throw new RuntimeException(e);
		} 
	  
        compile(sql, false);
	} 
	 
	@Implementation 
	public void compile(String sql, boolean forceCompilation) {
    } 
 
 
    /** 
     * Bind a NULL value to this statement. The value remains bound until