Do you need all the distinction on type and queryType for Statement imll. which does not have setString() capability. setString is only for prepared statements.