greenrobot/greenDAO — pull request #74 by croemmich (2013-02-27 05:46:54+00:00)
Title: Add listKeys method to query object

I didn't want to refactor the AbstractQuery class and children to pass
the key type so this ugly method is required...

@SuppressWarnings("unchecked")
public List readKeys(Cursor cursor, boolean close) {
return (List) dao.readKeys(cursor, close);
}

To use for deletion it looks like this:
dao.deleteByKeyInTx(dao.queryBuilder().listKeys());

I grant greenrobot ownership of the code changes contained in this
commit.