C - The client objectS - The server objectpublic abstract class AbstractSearchEntity<C extends Serializable,S extends org.bonitasoft.engine.persistence.PersistentObject> extends Object implements org.bonitasoft.engine.commons.transaction.TransactionContentWithResult<SearchResult<C>>
| Constructor and Description |
|---|
AbstractSearchEntity(SearchEntityDescriptor searchDescriptor,
SearchOptions options) |
| Modifier and Type | Method and Description |
|---|---|
abstract List<C> |
convertToClientObjects(List<S> serverObjects)
Must convert server objects in client objects here
|
void |
execute() |
abstract long |
executeCount(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Execute the count here
|
abstract List<S> |
executeSearch(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Execute the search here
|
SearchResult<C> |
getResult() |
protected SearchFilter |
getSearchFilter(SearchOptions searchOptions,
String searchedKey) |
public AbstractSearchEntity(SearchEntityDescriptor searchDescriptor, SearchOptions options)
searchDescriptor - The search descriptor of the searched entityoptions - The options of the searchpublic void execute()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
execute in interface org.bonitasoft.engine.commons.transaction.TransactionContentorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic abstract long executeCount(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
queryOptions - The query options to execute the count withorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic abstract List<S> executeSearch(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
queryOptions - The query options to execute the search withorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic abstract List<C> convertToClientObjects(List<S> serverObjects) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
serverObjects - The server object to convertorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic SearchResult<C> getResult()
getResult in interface org.bonitasoft.engine.commons.transaction.TransactionContentWithResult<SearchResult<C extends Serializable>>protected SearchFilter getSearchFilter(SearchOptions searchOptions, String searchedKey)
Copyright © 2015 Bonitasoft S.A.. All rights reserved.