setQuery added

Requirement 3.1.1.9.2.3