Example usage for Java org.springframework.orm.jpa JpaTransactionManager fields, constructors, methods, implement or subclass
The text is from its open source code.
JpaTransactionManager() Create a new JpaTransactionManager instance. | |
JpaTransactionManager(EntityManagerFactory emf) Create a new JpaTransactionManager instance. |
void | afterPropertiesSet() Eagerly initialize the JPA dialect, creating a default one for the specified EntityManagerFactory if none set. |
EntityManagerFactory | getEntityManagerFactory() Return the EntityManagerFactory that this instance should manage transactions for. |
TransactionStatus | getTransaction(@Nullable TransactionDefinition definition) This implementation handles propagation behavior. |
void | setDataSource(@Nullable DataSource dataSource) Set the JDBC DataSource that this instance should manage transactions for. |
void | setEntityManagerFactory(@Nullable EntityManagerFactory emf) Set the EntityManagerFactory that this instance should manage transactions for. |
void | setJpaDialect(@Nullable JpaDialect jpaDialect) Set the JPA dialect to use for this transaction manager. |
void | setJpaPropertyMap(@Nullable Map Specify JPA properties as a Map, to be passed into EntityManagerFactory.createEntityManager(Map) (if any). |
void | setPersistenceUnitName(@Nullable String persistenceUnitName) Set the name of the persistence unit to manage transactions for. |
void | setTransactionSynchronization(int transactionSynchronization) Set when this transaction manager should activate the thread-bound transaction synchronization support. |
String | toString() Returns a string representation of the object. |