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

java.lang.Object
  extended by org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource
All Implemented Interfaces:
PersistenceSource

public class NioNeoDbPersistenceSource
extends Object
implements PersistenceSource

The NioNeo persistence source implementation. If this class is registered as persistence source for Neo4j kernel operations that are performed on the node space will be forwarded to this class NeoStoreTransaction implementation.


Constructor Summary
NioNeoDbPersistenceSource()
           
 
Method Summary
 NeoStoreTransaction createReadOnlyResourceConnection()
           
 NeoStoreTransaction createTransaction(XaConnection connection)
          Creates a resource connection to this persistence source.
 void destroy()
           
 String getDataSourceName()
           
 long getHighestPossibleIdInUse(Class<?> clazz)
           
 String getModuleName()
           
 long getNumberOfIdsInUse(Class<?> clazz)
           
 XaDataSource getXaDataSource()
           
 XAResource getXaResource()
           
 void init()
           
 long nextId(Class<?> clazz)
          If the persistence source is responsible for id generation it must implement this method.
 void reload()
           
 void setDataSourceName(String dataSourceName)
           
 void start(XaDataSourceManager xaDsManager)
           
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NioNeoDbPersistenceSource

public NioNeoDbPersistenceSource()
Method Detail

init

public void init()

start

public void start(XaDataSourceManager xaDsManager)

reload

public void reload()

stop

public void stop()

destroy

public void destroy()

getModuleName

public String getModuleName()

createTransaction

public NeoStoreTransaction createTransaction(XaConnection connection)
Description copied from interface: PersistenceSource
Creates a resource connection to this persistence source.

Specified by:
createTransaction in interface PersistenceSource
Parameters:
connection - the XaConnection to use.
Returns:
a newly opened NeoStoreTransaction to this PersistenceSource

createReadOnlyResourceConnection

public NeoStoreTransaction createReadOnlyResourceConnection()

toString

public String toString()
Overrides:
toString in class Object

nextId

public long nextId(Class<?> clazz)
Description copied from interface: PersistenceSource
If the persistence source is responsible for id generation it must implement this method.

Specified by:
nextId in interface PersistenceSource
Parameters:
clazz - the data structure to get next free unique id for
Returns:
the next free unique id for clazz

getXaResource

public XAResource getXaResource()

setDataSourceName

public void setDataSourceName(String dataSourceName)

getDataSourceName

public String getDataSourceName()

getHighestPossibleIdInUse

public long getHighestPossibleIdInUse(Class<?> clazz)
Specified by:
getHighestPossibleIdInUse in interface PersistenceSource

getNumberOfIdsInUse

public long getNumberOfIdsInUse(Class<?> clazz)
Specified by:
getNumberOfIdsInUse in interface PersistenceSource

getXaDataSource

public XaDataSource getXaDataSource()
Specified by:
getXaDataSource in interface PersistenceSource


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