public class SharedSessionCreator extends Object
Session
reference for a given SessionFactory.
A shared Session will behave just like a Session fetched from an application SessionFactory. It will delegate all calls to the current transactional Session, if any; otherwise it will fall back to a newly created Session per operation.
Neo4jTransactionManager| Constructor and Description |
|---|
SharedSessionCreator() |
| Modifier and Type | Method and Description |
|---|---|
static org.neo4j.ogm.session.Session |
createSharedSession(org.neo4j.ogm.session.SessionFactory sessionFactory)
Create a transactional Session proxy for the given SessionFactory.
|
public static org.neo4j.ogm.session.Session createSharedSession(org.neo4j.ogm.session.SessionFactory sessionFactory)
sessionFactory - SessionFactory to obtain Sessions from as needed
createSession call (may be null)
Session. Allows the addition or specification of proprietary interfaces.Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.