com.beetle.framework.business.command
类 CommandExecutor

java.lang.Object
  继承者 com.beetle.framework.business.command.CommandExecutor

public final class CommandExecutor
extends java.lang.Object


字段摘要
static int COMMON_EXECUTE
          普通的本地jvm方式执行
static int EJB_LOCAL_EXECUTE
          EJB本地接口方法执行
static int EJB_REMOTEL_EXECUTE
          EJB远程接口方式执行
static int RPC_EXECUTE
          框架实现http远程方式执行
 
构造方法摘要
CommandExecutor()
           
 
方法摘要
static void asynchroExecute(CommandImp command, ICommandCallBack callBack)
          异步执行,非阻塞
提交命令,后台执行,并通过回调来处理命令执行的结果
static void asynchroExecute(CommandImp command, int commandExecuteFlag, ICommandCallBack callBack)
           
static void asynchroExecuteWithTransaction(CommandImp command, ICommandCallBack callBack)
           
static void asynchroExecuteWithTransaction(CommandImp command, int commandExecuteFlag, ICommandCallBack callBack)
           
static CommandImp execute(CommandImp command)
          以非事务方式执行command业务对象
static CommandImp execute(CommandImp command, int commandExecuteFlag)
          以非事务方式执行command业务对象
static CommandImp executeWithTransaction(CommandImp command)
          以事务方式执行command业务对象
static CommandImp executeWithTransaction(CommandImp command, int commandExecuteFlag)
          以事务方式执行command业务对象
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

EJB_LOCAL_EXECUTE

public static final int EJB_LOCAL_EXECUTE
EJB本地接口方法执行

另请参见:
常量字段值

EJB_REMOTEL_EXECUTE

public static final int EJB_REMOTEL_EXECUTE
EJB远程接口方式执行

另请参见:
常量字段值

COMMON_EXECUTE

public static final int COMMON_EXECUTE
普通的本地jvm方式执行

另请参见:
常量字段值

RPC_EXECUTE

public static final int RPC_EXECUTE
框架实现http远程方式执行

另请参见:
常量字段值
构造方法详细信息

CommandExecutor

public CommandExecutor()
方法详细信息

executeWithTransaction

public static CommandImp executeWithTransaction(CommandImp command)
                                         throws CommandExecuteException
以事务方式执行command业务对象

参数:
command - CommandImp
返回:
返回执行后command对象(执行后command为一个纯数据对象,只作为结果传送,是dto)
抛出:
CommandExecuteException

execute

public static CommandImp execute(CommandImp command)
                          throws CommandExecuteException
以非事务方式执行command业务对象

参数:
command - CommandImp
返回:
返回执行后command对象(执行后command为一个纯数据对象,只作为结果传送,是dto)
抛出:
CommandExecuteException

asynchroExecute

public static void asynchroExecute(CommandImp command,
                                   ICommandCallBack callBack)
                            throws CommandExecuteException
异步执行,非阻塞
提交命令,后台执行,并通过回调来处理命令执行的结果

参数:
command - --输入命令
callBack - --结果处理回调
抛出:
CommandExecuteException

asynchroExecute

public static void asynchroExecute(CommandImp command,
                                   int commandExecuteFlag,
                                   ICommandCallBack callBack)
                            throws CommandExecuteException
抛出:
CommandExecuteException

asynchroExecuteWithTransaction

public static void asynchroExecuteWithTransaction(CommandImp command,
                                                  int commandExecuteFlag,
                                                  ICommandCallBack callBack)
                                           throws CommandExecuteException
抛出:
CommandExecuteException

asynchroExecuteWithTransaction

public static void asynchroExecuteWithTransaction(CommandImp command,
                                                  ICommandCallBack callBack)
                                           throws CommandExecuteException
抛出:
CommandExecuteException

execute

public static CommandImp execute(CommandImp command,
                                 int commandExecuteFlag)
                          throws CommandExecuteException
以非事务方式执行command业务对象

参数:
command - CommandImp
commandExecuteFlag - --执行方式标记
返回:
返回执行后command对象(执行后command为一个纯数据对象,只作为结果传送,是dto)
抛出:
CommandExecuteException

executeWithTransaction

public static CommandImp executeWithTransaction(CommandImp command,
                                                int commandExecuteFlag)
                                         throws CommandExecuteException
以事务方式执行command业务对象

参数:
command - CommandImp
commandExecuteFlag - --执行方式标记
返回:
返回执行后command对象(执行后command为一个纯数据对象,只作为结果传送,是dto)
抛出:
CommandExecuteException