Package org.bonitasoft.engine.command
Class ExecuteBDMQueryCommand
- java.lang.Object
-
- org.bonitasoft.engine.command.TenantCommand
-
- org.bonitasoft.engine.command.system.CommandWithParameters
-
- org.bonitasoft.engine.command.ExecuteBDMQueryCommand
-
- All Implemented Interfaces:
Command<TenantServiceAccessor>
public class ExecuteBDMQueryCommand extends CommandWithParameters
- Author:
- Romain Bioteau, Matthieu Chaffotte
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAX_RESULTSstatic java.lang.StringQUERY_NAMEstatic java.lang.StringQUERY_PARAMETERSstatic java.lang.StringRETURN_TYPEstatic java.lang.StringRETURNS_LISTstatic java.lang.StringSTART_INDEX
-
Constructor Summary
Constructors Constructor Description ExecuteBDMQueryCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializableexecute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor)Method that is called by the engine on the server side when the client callsCommandAPI.execute(String, Map)with the name or id of this command.-
Methods inherited from class org.bonitasoft.engine.command.system.CommandWithParameters
getIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameter
-
-
-
-
Field Detail
-
RETURNS_LIST
public static final java.lang.String RETURNS_LIST
- See Also:
- Constant Field Values
-
QUERY_PARAMETERS
public static final java.lang.String QUERY_PARAMETERS
- See Also:
- Constant Field Values
-
RETURN_TYPE
public static final java.lang.String RETURN_TYPE
- See Also:
- Constant Field Values
-
QUERY_NAME
public static final java.lang.String QUERY_NAME
- See Also:
- Constant Field Values
-
START_INDEX
public static final java.lang.String START_INDEX
- See Also:
- Constant Field Values
-
MAX_RESULTS
public static final java.lang.String MAX_RESULTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public java.io.Serializable execute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor) throws SCommandParameterizationException, SCommandExecutionExceptionDescription copied from interface:CommandMethod that is called by the engine on the server side when the client callsCommandAPI.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 side- Parameters:
parameters- 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 services- Returns:
- a result that will be returned to the client
- Throws:
SCommandParameterizationException- can be thrown if insufficient or wrong parameters are given by the clientSCommandExecutionException- can be thrown when something unexpected happens while executing the command
-
-