/** * Get the simple attributes row from the current cursor location * * @param cursor cursor * @return simple attributes row */ public SimpleAttributesRow getRow(UserCustomCursor cursor) { return getRow(cursor.getRow()); }
while (simpleCursor.moveToNext()) { SimpleAttributesRow simpleRow = simpleDao .getRow(simpleCursor); List<Long> mappedIds = rte.getMappingsForRelated( simpleRelation, simpleRow.getId());
/** * Get the simple attributes row from the current result set location * * @param resultSet * result set * @return simple attributes row */ public SimpleAttributesRow getRow(UserCustomResultSet resultSet) { return getRow(resultSet.getRow()); }
/** * Get the simple attributes rows that exist with the provided ids * * @param ids list of ids * @return simple attributes rows */ public List<SimpleAttributesRow> getRows(List<Long> ids) { List<SimpleAttributesRow> simpleAttributesRows = new ArrayList<>(); for (long id : ids) { UserCustomRow userCustomRow = queryForIdRow(id); if (userCustomRow != null) { simpleAttributesRows.add(getRow(userCustomRow)); } } return simpleAttributesRows; }
/** * Get the simple attributes rows that exist with the provided ids * * @param ids * list of ids * @return simple attributes rows */ public List<SimpleAttributesRow> getRows(List<Long> ids) { List<SimpleAttributesRow> simpleAttributesRows = new ArrayList<>(); for (long id : ids) { UserCustomRow userCustomRow = queryForIdRow(id); if (userCustomRow != null) { simpleAttributesRows.add(getRow(userCustomRow)); } } return simpleAttributesRows; }
.random() * simpleAttributesIds.size())); SimpleAttributesRow simpleAttributesRow = simpleAttributesDao .getRow(simpleAttributesDao .queryForIdRow(randomSimpleRowId));