@Test public void testGetListNumber() throws Exception { }
public List<Integer> getListNumber(long currencyId) { Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)}); List<Integer> result = new ArrayList<>(); if (cursor.moveToFirst()){ do { int val = cursor.getInt(cursor.getColumnIndex(BlockTable.NUMBER)); result.add(val); }while (cursor.moveToNext()); cursor.close(); } return result; }
BlockUdSql extends AbstractSql<BlockUd> { public List<Integer> getListNumber(long currencyId) { Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)}); List<Integer> result = new ArrayList<>(); if (cursor.moveToFirst()){ do { int val = cursor.getInt(cursor.getColumnIndex(BlockTable.NUMBER)); result.add(val); }while (cursor.moveToNext()); cursor.close(); } return result; } }
BlockUdSql extends AbstractSql<BlockUd> { public List<Integer> getListNumber(long currencyId) { Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)}); List<Integer> result = new ArrayList<>(); if (cursor.moveToFirst()){ do { int val = cursor.getInt(cursor.getColumnIndex(BlockTable.NUMBER)); result.add(val); }while (cursor.moveToNext()); cursor.close(); } return result; } BlockUdSql(Context context); }
BlockUdSql extends AbstractSql<BlockUd> { public List<Integer> getListNumber(long currencyId) { Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)}); List<Integer> result = new ArrayList<>(); if (cursor.moveToFirst()){ do { int val = cursor.getInt(cursor.getColumnIndex(BlockTable.NUMBER)); result.add(val); }while (cursor.moveToNext()); cursor.close(); } return result; } BlockUdSql(Context context); List<Integer> getListNumber(long currencyId); Map<Long, BlockUd> getMapByNumber(Long currencyId); BlockUd last(Long currencyId); @Override String getCreation(); @Override BlockUd fromCursor(Cursor cursor); @Override ContentValues toContentValues(BlockUd entity); }
BlockUdSql extends AbstractSql<BlockUd> { public List<Integer> getListNumber(long currencyId) { Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)}); List<Integer> result = new ArrayList<>(); if (cursor.moveToFirst()){ do { int val = cursor.getInt(cursor.getColumnIndex(BlockTable.NUMBER)); result.add(val); }while (cursor.moveToNext()); cursor.close(); } return result; } BlockUdSql(Context context); List<Integer> getListNumber(long currencyId); Map<Long, BlockUd> getMapByNumber(Long currencyId); BlockUd last(Long currencyId); @Override String getCreation(); @Override BlockUd fromCursor(Cursor cursor); @Override ContentValues toContentValues(BlockUd entity); static final Uri URI; static final int CODE; }