public void setSearchCategory ( String searchCategory ) { if ( searchCategory != null && getSearchQuery ( ) == null ) { throw new IllegalStateException ( "SearchQuery must be set before SearchCategory can be set." ) ; } setParameter ( SEARCH_CATEGORY , searchCategory ) ; }
Specify a search category with this parameter . SearchQuery must first be set .