changed protected to public setQuery() .