dimanche 5 avril 2015

mapRow of RawRowMapper is never called

I'm trying queryRaw with OrmLite, but mapRow method of the mapper is never called.



GenericRawResults<Operation> rawResults = operationDao.queryRaw(query.toString(), new RawRowMapper<Operation>() {
@Override
public Operation mapRow(String[] columnNames, String[] resultColumns) throws SQLException {
return new Operation(); //this is never called
}
});
List<Operation> operations = rawResults.getResults();


Before you guys start asking questions I'll answer most important one :


query.toString() returns valid sqlite select statement which I've pasted to sqlite manager running exact same database as the device geting tons of results


Aucun commentaire:

Enregistrer un commentaire