|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceSource
A data resource that Neo4j kernel uses to persist entities.
All persistence sources for the kernel should implement this interface.
| Method Summary | |
|---|---|
NeoStoreTransaction |
createTransaction(XaConnection connection)
Creates a resource connection to this persistence source. |
long |
getHighestPossibleIdInUse(Class<?> clazz)
|
long |
getNumberOfIdsInUse(Class<?> clazz)
|
XaDataSource |
getXaDataSource()
|
long |
nextId(Class<?> clazz)
If the persistence source is responsible for id generation it must implement this method. |
| Method Detail |
|---|
NeoStoreTransaction createTransaction(XaConnection connection)
connection - the XaConnection to use.
NeoStoreTransaction to this
PersistenceSourcelong nextId(Class<?> clazz)
clazz - the data structure to get next free unique id for
clazzlong getHighestPossibleIdInUse(Class<?> clazz)
long getNumberOfIdsInUse(Class<?> clazz)
XaDataSource getXaDataSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||