@Test public void testLast() throws Exception { }
public BlockUd last(Long currencyId) { BlockUd blockUd = null; Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)},BlockTable.NUMBER + " DESC"); if (cursor.moveToFirst()){ blockUd = fromCursor(cursor); } cursor.close(); return blockUd; }
BlockUdSql extends AbstractSql<BlockUd> { public BlockUd last(Long currencyId) { BlockUd blockUd = null; Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)},BlockTable.NUMBER + " DESC"); if (cursor.moveToFirst()){ blockUd = fromCursor(cursor); } cursor.close(); return blockUd; } }
BlockUdSql extends AbstractSql<BlockUd> { public BlockUd last(Long currencyId) { BlockUd blockUd = null; Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)},BlockTable.NUMBER + " DESC"); if (cursor.moveToFirst()){ blockUd = fromCursor(cursor); } cursor.close(); return blockUd; } BlockUdSql(Context context); }
BlockUdSql extends AbstractSql<BlockUd> { public BlockUd last(Long currencyId) { BlockUd blockUd = null; Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)},BlockTable.NUMBER + " DESC"); if (cursor.moveToFirst()){ blockUd = fromCursor(cursor); } cursor.close(); return blockUd; } 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 BlockUd last(Long currencyId) { BlockUd blockUd = null; Cursor cursor = query(BlockTable.CURRENCY_ID+"=?",new String[]{String.valueOf(currencyId)},BlockTable.NUMBER + " DESC"); if (cursor.moveToFirst()){ blockUd = fromCursor(cursor); } cursor.close(); return blockUd; } 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; }