You should be able to use the setString() method instead. If the query you listed above executes successfully from a sql editor, then that should work.
I'm sure it depends on the db vendor, but for ours (Informix), we can always use setString() regardless of the datatype and the db will interpret it appropriately.