com.hazelcast.jca
Class HazelcastTransactionImpl

java.lang.Object
  extended by com.hazelcast.jca.JcaBase
      extended by com.hazelcast.jca.HazelcastTransactionImpl
All Implemented Interfaces:
HazelcastTransaction, javax.resource.spi.LocalTransaction

public class HazelcastTransactionImpl
extends JcaBase
implements HazelcastTransaction

Implementation class of HazelcastTransaction


Constructor Summary
HazelcastTransactionImpl(ManagedConnectionFactoryImpl factory, ManagedConnectionImpl connection)
           
 
Method Summary
 void begin()
           
 void commit()
           
static TransactionContext createTransaction(int timeout, HazelcastInstance hazelcastInstance)
           
 TransactionContext getTxContext()
           
 void rollback()
           
 void setTxContext(TransactionContext txContext)
           
 
Methods inherited from class com.hazelcast.jca.JcaBase
getLogWriter, setLogWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HazelcastTransactionImpl

public HazelcastTransactionImpl(ManagedConnectionFactoryImpl factory,
                                ManagedConnectionImpl connection)
Method Detail

begin

public void begin()
           throws javax.resource.ResourceException
Specified by:
begin in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException

commit

public void commit()
            throws javax.resource.ResourceException
Specified by:
commit in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException

rollback

public void rollback()
              throws javax.resource.ResourceException
Specified by:
rollback in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException

getTxContext

public TransactionContext getTxContext()

setTxContext

public void setTxContext(TransactionContext txContext)

createTransaction

public static TransactionContext createTransaction(int timeout,
                                                   HazelcastInstance hazelcastInstance)
                                            throws XAException
Throws:
XAException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.