public class SessionFactoryUtils extends Object
Mainly intended for internal use within the framework.
| Constructor and Description |
|---|
SessionFactoryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession(org.neo4j.ogm.session.Session session) |
static DataAccessException |
convertOgmAccessException(RuntimeException ex)
Convert the given runtime exception to an appropriate exception from the
org.springframework.dao hierarchy. |
static org.neo4j.ogm.session.Session |
getSession(org.neo4j.ogm.session.SessionFactory sessionFactory) |
public static void closeSession(org.neo4j.ogm.session.Session session)
public static org.neo4j.ogm.session.Session getSession(org.neo4j.ogm.session.SessionFactory sessionFactory)
throws IllegalStateException
IllegalStateExceptionpublic static DataAccessException convertOgmAccessException(RuntimeException ex)
org.springframework.dao hierarchy.
Return null if no translation is appropriate: any other exception may
have resulted from user code, and should not be translated.ex - runtime exception that occurrednull if the exception should not be translatedCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.