Could you show only the SQL Statements in question? That would make it a lot easier for someone trying to help you.
–
a_horse_with_no_nameMar 14 '11 at 15:28

1

That call to PreparedStatement.setString isn't going to work without a query parameter in the text itself. You should be passing in something like "CREATE TABLE ? (? VARCHAR(20), geom int, shape char(10))", with ? for each value you want to set dynamically.
–
Vance MaverickMar 14 '11 at 15:29