public class Neo4jDatastore extends AbstractDatastore
Datastore implementation for Neo4j backend
Modifiers | Name | Description |
---|---|---|
protected AutoTimestampEventListener |
autoTimestampEventListener |
|
protected org.neo4j.driver.v1.Driver |
boltDriver |
|
protected ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> |
connectionSources |
|
protected java.util.Map<java.lang.String, Neo4jDatastore> |
datastoresByConnectionSource |
|
protected javax.persistence.FlushModeType |
defaultFlushMode |
|
protected ConfigurableApplicationEventPublisher |
eventPublisher |
|
protected GormEnhancer |
gormEnhancer |
|
protected MultiTenancyMode |
multiTenancyMode |
|
protected boolean |
skipIndexSetup |
|
protected TenantResolver |
tenantResolver |
|
protected Neo4jDatastoreTransactionManager |
transactionManager |
Fields inherited from class | Fields |
---|---|
class AbstractDatastore |
LOG, cacheAdapterRepository, connectionDetails, mappingContext |
Constructor and description |
---|
Neo4jDatastore
(ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> connectionSources, Neo4jMappingContext mappingContext, ConfigurableApplicationEventPublisher eventPublisher) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> connectionSources, ConfigurableApplicationEventPublisher eventPublisher, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> connectionSources, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.neo4j.driver.v1.Driver boltDriver, org.springframework.core.env.PropertyResolver configuration, ConfigurableApplicationEventPublisher eventPublisher, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.neo4j.driver.v1.Driver boltDriver, ConfigurableApplicationEventPublisher eventPublisher, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.neo4j.driver.v1.Driver boltDriver, org.springframework.core.env.PropertyResolver configuration, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.neo4j.driver.v1.Driver boltDriver, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.springframework.core.env.PropertyResolver configuration, Neo4jConnectionSourceFactory connectionSourceFactory, ConfigurableApplicationEventPublisher eventPublisher, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.springframework.core.env.PropertyResolver configuration, ConfigurableApplicationEventPublisher eventPublisher, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(org.springframework.core.env.PropertyResolver configuration, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(java.util.Map<java.lang.String, java.lang.Object> configuration, ConfigurableApplicationEventPublisher eventPublisher, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Neo4jDatastore
(java.util.Map<java.lang.String, java.lang.Object> configuration, java.lang.Class... classes) Configures a new Neo4jDatastore for the given arguments |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
close() |
|
protected static ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> |
createDefaultConnectionSources(org.neo4j.driver.v1.Driver driver, org.springframework.core.env.PropertyResolver configuration) Creates the connection sources for an existing org.neo4j.driver.v1.Driver |
|
protected static Neo4jMappingContext |
createMappingContext(ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> connectionSources, java.lang.Class... classes) |
|
protected Session |
createSession(org.springframework.core.env.PropertyResolver connectionDetails) |
|
ConfigurableApplicationEventPublisher |
getApplicationEventPublisher() |
|
AutoTimestampEventListener |
getAutoTimestampEventListener() |
|
org.neo4j.driver.v1.Driver |
getBoltDriver() @return The org.neo4j.driver.v1.Driver used by this datastore |
|
ConnectionSources<org.neo4j.driver.v1.Driver, Neo4jConnectionSourceSettings> |
getConnectionSources() |
|
Neo4jDatastore |
getDatastoreForTenantId(java.io.Serializable tenantId) |
|
MultiTenancyMode |
getMultiTenancyMode() |
|
TenantResolver |
getTenantResolver() |
|
Neo4jDatastoreTransactionManager |
getTransactionManager() @return The transaction manager |
|
protected GormEnhancer |
initialize(Neo4jConnectionSourceSettings settings) |
|
protected void |
registerEventListeners(ConfigurableApplicationEventPublisher eventPublisher) |
|
void |
setSkipIndexSetup(boolean skipIndexSetup) |
|
void |
setupIndexing() |
<T1> |
T1 |
withNewSession(java.io.Serializable tenantId, groovy.lang.Closure<T1> callable) |
Methods inherited from class | Name |
---|---|
class AbstractDatastore |
connect, connect, connectStateless, createSession, createStatelessSession, destroy, getApplicationContext, getApplicationEventPublisher, getCurrentSession, getMappingContext, hasCurrentSession, initializeConverters, isIndexed, isSchemaless, mapToPropertyResolver, retrieveSession, retrieveSession, setApplicationContext, withSession |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Configures a new Neo4jDatastore for the given arguments
mappingContext
- The MappingContext which contains information about the mapped classeseventPublisher
- The Spring ApplicationContextConfigures a new Neo4jDatastore for the given arguments
eventPublisher
- The Spring ApplicationContextclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
classes
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
boltDriver
- The driverconfiguration
- The configuration for the datastoreeventPublisher
- The Spring ApplicationContextclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
boltDriver
- The drivereventPublisher
- The Spring ApplicationContextclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
boltDriver
- The driverconfiguration
- The configuration for the datastoreclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
boltDriver
- The driverclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
configuration
- The configuration for the datastoreconnectionSourceFactory
- The Neo4jConnectionSourceFactory to use to configure Neo4jeventPublisher
- The Spring ApplicationContextclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
configuration
- The configuration for the datastoreeventPublisher
- The Spring ApplicationContextclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
configuration
- The configuration for the datastoreclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
classes
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
configuration
- The configurationclasses
- The persistent classesConfigures a new Neo4jDatastore for the given arguments
configuration
- The configurationclasses
- The persistent classesCreates the connection sources for an existing org.neo4j.driver.v1.Driver
driver
- The org.neo4j.driver.v1.Driverconfiguration
- The configuration