could you please help me with how to check the syntax of an sql query without hitting the database using java?