public interface BaseSearchResult
Modifier and Type | Method and Description |
---|---|
String |
getField(String fieldName)
Returns the contents of the field as a string.
|
com.atlassian.bonnie.Handle |
getHandle()
Retrieves the handle that can then be used by the AnyTypeDao to retrieve the database object referenced by this
search result.
|
boolean |
isFieldRequested(String fieldName)
check to see if this SearchFieldName has been requested during the search, if this method returns false then
getField will throw a FieldNotRequestedException
|
com.atlassian.bonnie.Handle getHandle()
AnyTypeDao.findByHandle(com.atlassian.bonnie.Handle)
String getField(String fieldName)
fieldName
- FieldNotRequestedException
- if the searchFieldName was not included when the searchResult was requested from the searchManager. If the
set of fields requested from the searchManager is null or empty, then no exception will be thrown and all
fields will be loaded into the searchResult at the time of the search.boolean isFieldRequested(String fieldName)
fieldName
- Copyright © 2003–2015 Atlassian. All rights reserved.