Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > Java > javax.transaction.Synchronization翻译
【标  题】:javax.transaction.Synchronization翻译
【关键字】:javax.transaction.Synchronization
【来  源】:http://blog.csdn.net/wocongdongfanglai/archive/2005/11/17/531442.aspx

javax.transaction.Synchronization翻译

Your Ad Here  
JavaTM 2 Platform
Ent. Ed. v1.4

javax.transaction
Interface Synchronization


public interface Synchronization

The transaction manager supports a synchronization mechanism that allows the interested party to be notified before and after the transaction completes. Using the registerSynchronization method, the application server registers a Synchronization object for the transaction currently associated with the target Transaction object. 事务管理器支持同步机制以允许在事务完成以后通知感兴趣者。 使用registerSynchronization方法,应用服务器为当前同目标Transaction对象关联事务注册一个Synchronization对象。


Method Summary
 voidafterCompletion(int status)
          This method is called by the transaction manager after the transaction is committed or rolled back. 该方法由事务管理器在事务提交或回滚后调用。
 voidbeforeCompletion()
          The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. beforeCompletion方法由事务管理器在开始两步事务提交过程前调用。
 

Method Detail

beforeCompletion

public void beforeCompletion()
The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed. beforeCompletion方法由事务管理器在开始两步事务提交过程前调用。执行调用 需要正提交事务的事务上下文。


afterCompletion

public void afterCompletion(int status)
This method is called by the transaction manager after the transaction is committed or rolled back. 该方法由事务管理器在事务提交或回滚后调用。

Parameters:
status - The status of the transaction completion. 事务完成状态。

JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

javax.transaction.TransactionRolledbackException翻译:【上一篇】
javax.transaction.HeuristicRollbackException翻译:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • 发一段开启摄像头的代码
  • 每天自動報告數據庫中表的空間使用情況
  • java学习笔记(只适用于初学者)
  • Linux Socket编程实例(一个Hello World程序)
  • Java只有一种参数传递方式,那就是传值
  • 一个使用Neko提取HTML纯文本内容的程序例子
  • 06年基础软件十大趋势:32位服务器走向灭亡
  • 大容量,多业务,智能化构建城域光网络
  • 游戏引擎大全
  • J2ME游戏开发的高级优化技巧
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.