And the documentation specifically says that the second parameter is ignored if the first parameter isn't an INSERT statement (or some other obscure things). So it would be pointless to use this method for statements other than INSERT, but not against the rules.
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
Programmatically Create PDF Using Free Spire.PDF with Java