public final class CommandsFactory extends Object
Constructor and Description |
---|
CommandsFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDoActionWithParameters(VdcActionType action,
Object id,
RefObject<ArrayList<String>> reasons,
Object... additionalParameters) |
static CommandBase<?> |
CreateCommand(String className,
Guid commandId)
Creates an instance of the given command class and passed the command id to it's constructor
|
static <P extends VdcActionParametersBase> |
CreateCommand(VdcActionType action,
P parameters) |
static QueriesCommandBase |
CreateQueryCommand(VdcQueryType query,
VdcQueryParametersBase parameters) |
public static boolean canDoActionWithParameters(VdcActionType action, Object id, RefObject<ArrayList<String>> reasons, Object... additionalParameters)
public static <P extends VdcActionParametersBase> CommandBase<P> CreateCommand(VdcActionType action, P parameters)
public static CommandBase<?> CreateCommand(String className, Guid commandId)
className
- command class name to be createdcommandId
- the command id used by the compensation.public static QueriesCommandBase CreateQueryCommand(VdcQueryType query, VdcQueryParametersBase parameters)
Copyright © 2012. All Rights Reserved.