C - The client objectS - The server objectpublic abstract class AbstractGetEntity<C extends Serializable,S extends org.bonitasoft.engine.persistence.PersistentObject> extends Object implements org.bonitasoft.engine.commons.transaction.TransactionContentWithResult<List<C>>
| Constructor and Description |
|---|
AbstractGetEntity(SearchEntityDescriptor searchDescriptor,
int fromIndex,
int numberOfResults,
Sort sort) |
| Modifier and Type | Method and Description |
|---|---|
abstract List<C> |
convertToClientObjects(List<S> serverObjects)
Must convert server objects in client objects here
|
void |
execute() |
abstract List<S> |
executeGet(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Execute the search here
|
List<C> |
getResult() |
public AbstractGetEntity(SearchEntityDescriptor searchDescriptor, int fromIndex, int numberOfResults, Sort sort)
searchDescriptor - The descriptor corresponding to the searched objectfromIndex - The specified position to begin the searchnumberOfResults - The number of elements to returnsort - How to sort the resultpublic void execute()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
execute in interface org.bonitasoft.engine.commons.transaction.TransactionContentorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic abstract List<S> executeGet(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
queryOptions - The query options to execute the search withorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic abstract List<C> convertToClientObjects(List<S> serverObjects)
serverObjects - The server object to convertpublic List<C> getResult()
getResult in interface org.bonitasoft.engine.commons.transaction.TransactionContentWithResult<List<C extends Serializable>>Copyright © 2017 Bonitasoft S.A.. All rights reserved.