public class ExecuteBDMQueryCommand extends CommandWithParameters
| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_RESULTS |
static String |
QUERY_NAME |
static String |
QUERY_PARAMETERS |
static String |
RETURN_TYPE |
static String |
RETURNS_LIST |
static String |
START_INDEX |
| Constructor and Description |
|---|
ExecuteBDMQueryCommand() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
execute(Map<String,Serializable> parameters,
TenantServiceAccessor serviceAccessor)
Method that is called by the engine on the server side when the client calls
CommandAPI.execute(String, Map) with the name or id of this
command. |
protected BusinessDataRepository |
getBusinessDataRepository(TenantServiceAccessor serviceAccessor) |
protected Class<? extends Serializable> |
loadClass(String returnType) |
getIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameterpublic static final String RETURNS_LIST
public static final String QUERY_PARAMETERS
public static final String RETURN_TYPE
public static final String QUERY_NAME
public static final String START_INDEX
public static final String MAX_RESULTS
public Serializable execute(Map<String,Serializable> parameters, TenantServiceAccessor serviceAccessor) throws SCommandParameterizationException, SCommandExecutionException
CommandCommandAPI.execute(String, Map) with the name or id of this
command.
Implementors of commands must put here the code to be executed on the server sideparameters - a map of parameters that can be used by the command and that is given by the client when executing the commandserviceAccessor - the TenantServiceAccessor or PlatformServiceAccessor that provides access to the engine's server-side servicesSCommandParameterizationException - can be thrown if insufficient or wrong parameters are given by the clientSCommandExecutionException - can be thrown when something unexpected happens while executing the commandprotected BusinessDataRepository getBusinessDataRepository(TenantServiceAccessor serviceAccessor)
protected Class<? extends Serializable> loadClass(String returnType) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2017 Bonitasoft S.A.. All rights reserved.