站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

LocalTransaction (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


javax.resource.cci
Interface LocalTransaction


public interface LocalTransaction

The LocalTransaction interface is the transaction demarcation interface for transactions local to the resource manager. This interface is used for application level transaction demarcation, the spi.LocalTransaction interface is used for transaction management within a resource adapter. Implementation of this interface is optional for a resource manager.


Method Summary
 void begin()
          Begins a local transaction on the userlying resource.
 void commit()
          Commits a local transaction on the userlying resource.
 void rollback()
          Rolls back a local transaction on the userlying resource.
 

Method Detail

begin

public void begin()
           throws ResourceException
Begins a local transaction on the userlying resource.

Throws:
ResourceException

commit

public void commit()
            throws ResourceException
Commits a local transaction on the userlying resource.

Throws:
ResourceException

rollback

public void rollback()
              throws ResourceException
Rolls back a local transaction on the userlying resource.

Throws:
ResourceException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.