From the posted code, I understand that you are trying to do a "generic" select-all logic. Generic in the sense that, being parameterized (mainly by the tableName), it should ideally work for any...