Class AbstractGetEntity<C extends Serializable,S extends PersistentObject>
java.lang.Object
org.bonitasoft.engine.api.impl.transaction.AbstractGetEntity<C,S>
- Type Parameters:
C- The client objectS- The server object
- All Implemented Interfaces:
TransactionContent,TransactionContentWithResult<List<C>>
- Direct Known Subclasses:
AbstractGetProcessDeploymentInfo
public abstract class AbstractGetEntity<C extends Serializable,S extends PersistentObject>
extends Object
implements TransactionContentWithResult<List<C>>
Abstract class to allow to search server object and convert them to client object
- Author:
- Celine Souchet
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractGetEntity(SearchEntityDescriptor searchDescriptor, int fromIndex, int numberOfResults, org.bonitasoft.engine.search.Sort sort) -
Method Summary
Modifier and TypeMethodDescriptionconvertToClientObjects(List<S> serverObjects) Must convert server objects in client objects herevoidexecute()executeGet(QueryOptions queryOptions) Execute the search here
-
Constructor Details
-
AbstractGetEntity
public AbstractGetEntity(SearchEntityDescriptor searchDescriptor, int fromIndex, int numberOfResults, org.bonitasoft.engine.search.Sort sort) - Parameters:
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 result
-
-
Method Details
-
execute
- Specified by:
executein interfaceTransactionContent- Throws:
SBonitaException
-
executeGet
Execute the search here- Parameters:
queryOptions- The query options to execute the search with- Returns:
- The searched result
- Throws:
SBonitaException
-
convertToClientObjects
Must convert server objects in client objects here- Parameters:
serverObjects- The server object to convert- Returns:
- The list of the client objects
-
getResult
- Specified by:
getResultin interfaceTransactionContentWithResult<C extends Serializable>
-