OpenJpaDialect javadoc makes no reference to TopLink anymore
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -50,7 +50,7 @@ public class OpenJpaDialect extends DefaultJpaDialect {
|
||||
super.beginTransaction(entityManager, definition);
|
||||
OpenJPAEntityManager em = getOpenJPAEntityManager(entityManager);
|
||||
if (!definition.isReadOnly()) {
|
||||
// Like with TopLink, make sure to start the logic transaction early so that other
|
||||
// Like with EclipseLink, make sure to start the logic transaction early so that other
|
||||
// participants using the connection (such as JdbcTemplate) run in a transaction.
|
||||
em.beginStore();
|
||||
}
|
||||
@@ -65,9 +65,9 @@ public class OpenJpaDialect extends DefaultJpaDialect {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the OpenJPA-specific interface of {@code EntityManager}.
|
||||
* Return the OpenJPA-specific variant of {@code EntityManager}.
|
||||
* @param em the generic {@code EntityManager} instance
|
||||
* @return the OpenJPA-specific interface of {@code EntityManager}
|
||||
* @return the OpenJPA-specific variant of {@code EntityManager}
|
||||
*/
|
||||
protected OpenJPAEntityManager getOpenJPAEntityManager(EntityManager em) {
|
||||
return OpenJPAPersistence.cast(em);
|
||||
@@ -76,7 +76,7 @@ public class OpenJpaDialect extends DefaultJpaDialect {
|
||||
|
||||
/**
|
||||
* Transaction data Object exposed from {@code beginTransaction},
|
||||
* implementing the SavepointManager interface.
|
||||
* implementing the {@link SavepointManager} interface.
|
||||
*/
|
||||
private static class OpenJpaTransactionData implements SavepointManager {
|
||||
|
||||
@@ -106,8 +106,8 @@ public class OpenJpaDialect extends DefaultJpaDialect {
|
||||
|
||||
|
||||
/**
|
||||
* ConnectionHandle implementation that fetches a new OpenJPA-provided Connection
|
||||
* for every {@code getConnection} call and closes the Connection on
|
||||
* {@link ConnectionHandle} implementation that fetches a new OpenJPA-provided
|
||||
* Connection for every {@code getConnection} call and closes the Connection on
|
||||
* {@code releaseConnection}. This is necessary because OpenJPA requires the
|
||||
* fetched Connection to be closed before continuing EntityManager work.
|
||||
* @see org.apache.openjpa.persistence.OpenJPAEntityManager#getConnection()
|
||||
|
||||
Reference in New Issue
Block a user