下面是实现开关加载文件的示例代码。
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
To improve performance, you may wish to factor out the code for each model attribute into its own method (or a single method with a "switch").
开关加载文件由事务管理器或资源管理器提供,并且有选择地提供代码以处理xa例程返回的错误。
The switch-load file could be provided by either the transaction manager or the resource manager, and can optionally provide code to handle the errors returned by the XA routines.
应用推荐