org.neo4j.kernel.impl.transaction.xaframework
Interface XaConnection

All Known Implementing Classes:
IndexXaConnection, NeoStoreXaConnection, XaConnectionHelpImpl

public interface XaConnection

XaConnection holds the XAResource used by the transaction manager to control the work done on the resource in a global transaction. Normally you add your "work like" methods in the implementing class.

Don't forget to enlist and delist the resource with the transaction manager when work is beeing done

See Also:
XaConnectionHelpImpl

Method Summary
 void destroy()
          Destroys this connection and depending on XAResource implementation the work done on the resource will be rolled back, saved or committed (may also depend on transactional state).
 XAResource getXaResource()
          Returns the XAResource held by this XaConnection.
 

Method Detail

getXaResource

XAResource getXaResource()
Returns the XAResource held by this XaConnection.

Returns:
The resource associated with this connection

destroy

void destroy()
Destroys this connection and depending on XAResource implementation the work done on the resource will be rolled back, saved or committed (may also depend on transactional state).

This method is only valid to call once and there after it is illegal to invoke getXaResource or any other method that creates transactions or performs work using the XAResource.



Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.