SQL statement generator using Java