added a set method to the AdHocQuery