Spring Data Graph

org.springframework.data.graph.neo4j.jpa
Class Neo4jJpaDialect

java.lang.Object
  extended by org.springframework.data.graph.neo4j.jpa.Neo4jJpaDialect
All Implemented Interfaces:
PersistenceExceptionTranslator, JpaDialect

public class Neo4jJpaDialect
extends Object
implements JpaDialect

Since:
23.08.2010
Author:
Michael Hunger

Constructor Summary
Neo4jJpaDialect()
           
 
Method Summary
 Object beginTransaction(javax.persistence.EntityManager entityManager, TransactionDefinition transactionDefinition)
           
 void cleanupTransaction(Object o)
           
 EntityManagerFactoryPlusOperations getEntityManagerFactoryPlusOperations(javax.persistence.EntityManagerFactory entityManagerFactory)
           
 EntityManagerPlusOperations getEntityManagerPlusOperations(javax.persistence.EntityManager entityManager)
           
 ConnectionHandle getJdbcConnection(javax.persistence.EntityManager entityManager, boolean b)
           
 Object prepareTransaction(javax.persistence.EntityManager entityManager, boolean b, String s)
           
 void releaseJdbcConnection(ConnectionHandle connectionHandle, javax.persistence.EntityManager entityManager)
           
 boolean supportsEntityManagerFactoryPlusOperations()
           
 boolean supportsEntityManagerPlusOperations()
           
 DataAccessException translateExceptionIfPossible(RuntimeException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Neo4jJpaDialect

public Neo4jJpaDialect()
Method Detail

supportsEntityManagerFactoryPlusOperations

public boolean supportsEntityManagerFactoryPlusOperations()
Specified by:
supportsEntityManagerFactoryPlusOperations in interface JpaDialect

supportsEntityManagerPlusOperations

public boolean supportsEntityManagerPlusOperations()
Specified by:
supportsEntityManagerPlusOperations in interface JpaDialect

getEntityManagerFactoryPlusOperations

public EntityManagerFactoryPlusOperations getEntityManagerFactoryPlusOperations(javax.persistence.EntityManagerFactory entityManagerFactory)
Specified by:
getEntityManagerFactoryPlusOperations in interface JpaDialect

getEntityManagerPlusOperations

public EntityManagerPlusOperations getEntityManagerPlusOperations(javax.persistence.EntityManager entityManager)
Specified by:
getEntityManagerPlusOperations in interface JpaDialect

beginTransaction

public Object beginTransaction(javax.persistence.EntityManager entityManager,
                               TransactionDefinition transactionDefinition)
                        throws javax.persistence.PersistenceException,
                               SQLException,
                               TransactionException
Specified by:
beginTransaction in interface JpaDialect
Throws:
javax.persistence.PersistenceException
SQLException
TransactionException

prepareTransaction

public Object prepareTransaction(javax.persistence.EntityManager entityManager,
                                 boolean b,
                                 String s)
                          throws javax.persistence.PersistenceException
Specified by:
prepareTransaction in interface JpaDialect
Throws:
javax.persistence.PersistenceException

cleanupTransaction

public void cleanupTransaction(Object o)
Specified by:
cleanupTransaction in interface JpaDialect

getJdbcConnection

public ConnectionHandle getJdbcConnection(javax.persistence.EntityManager entityManager,
                                          boolean b)
                                   throws javax.persistence.PersistenceException,
                                          SQLException
Specified by:
getJdbcConnection in interface JpaDialect
Throws:
javax.persistence.PersistenceException
SQLException

releaseJdbcConnection

public void releaseJdbcConnection(ConnectionHandle connectionHandle,
                                  javax.persistence.EntityManager entityManager)
                           throws javax.persistence.PersistenceException,
                                  SQLException
Specified by:
releaseJdbcConnection in interface JpaDialect
Throws:
javax.persistence.PersistenceException
SQLException

translateExceptionIfPossible

public DataAccessException translateExceptionIfPossible(RuntimeException e)
Specified by:
translateExceptionIfPossible in interface PersistenceExceptionTranslator

Spring Data Graph

Copyright © 2011. All Rights Reserved.