Generalized parameter setting for prepared statements.
Add javadoc.