org.neo4j.kernel.impl.nioneo.xa
Class NeoStoreXaConnection

java.lang.Object
  extended by org.neo4j.kernel.impl.transaction.xaframework.XaConnectionHelpImpl
      extended by org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaConnection
All Implemented Interfaces:
XaConnection

public class NeoStoreXaConnection
extends XaConnectionHelpImpl

XaConnection implementation for the Neo4j kernel native store. Contains getter methods for the different stores (node,relationship,property and relationship type).

A NeoStoreXaConnection is obtained from NeoStoreXaDataSource and then Neo4j persistence layer can perform the operations requested via the store implementations.


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).
 PropertyStore getPropertyStore()
          Made public for testing, dont use.
 RelationshipTypeStore getRelationshipTypeStore()
           
 WriteTransaction getWriteTransaction()
           
 XAResource getXaResource()
          Returns the XAResource associated with this connection.
 
Methods inherited from class org.neo4j.kernel.impl.transaction.xaframework.XaConnectionHelpImpl
clearAllTransactions, getTransaction, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyStore

public PropertyStore getPropertyStore()
Made public for testing, dont use.


getRelationshipTypeStore

public RelationshipTypeStore getRelationshipTypeStore()

getXaResource

public XAResource getXaResource()
Description copied from class: XaConnectionHelpImpl
Returns the XAResource associated with this connection.

Specified by:
getXaResource in interface XaConnection
Specified by:
getXaResource in class XaConnectionHelpImpl
Returns:
The XAResource for this connection

getWriteTransaction

public WriteTransaction getWriteTransaction()

destroy

public void destroy()
Description copied from interface: XaConnection
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.

Specified by:
destroy in interface XaConnection
Overrides:
destroy in class XaConnectionHelpImpl


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