support method chaining on setLocalParam() and added the method to Query as well