1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2013 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ public Object beginTransaction(EntityManager entityManager, TransactionDefinitio
50
50
super .beginTransaction (entityManager , definition );
51
51
OpenJPAEntityManager em = getOpenJPAEntityManager (entityManager );
52
52
if (!definition .isReadOnly ()) {
53
- // Like with TopLink , make sure to start the logic transaction early so that other
53
+ // Like with EclipseLink , make sure to start the logic transaction early so that other
54
54
// participants using the connection (such as JdbcTemplate) run in a transaction.
55
55
em .beginStore ();
56
56
}
@@ -65,9 +65,9 @@ public ConnectionHandle getJdbcConnection(EntityManager entityManager, boolean r
65
65
}
66
66
67
67
/**
68
- * Return the OpenJPA-specific interface of {@code EntityManager}.
68
+ * Return the OpenJPA-specific variant of {@code EntityManager}.
69
69
* @param em the generic {@code EntityManager} instance
70
- * @return the OpenJPA-specific interface of {@code EntityManager}
70
+ * @return the OpenJPA-specific variant of {@code EntityManager}
71
71
*/
72
72
protected OpenJPAEntityManager getOpenJPAEntityManager (EntityManager em ) {
73
73
return OpenJPAPersistence .cast (em );
@@ -76,7 +76,7 @@ protected OpenJPAEntityManager getOpenJPAEntityManager(EntityManager em) {
76
76
77
77
/**
78
78
* Transaction data Object exposed from {@code beginTransaction},
79
- * implementing the SavepointManager interface.
79
+ * implementing the {@link SavepointManager} interface.
80
80
*/
81
81
private static class OpenJpaTransactionData implements SavepointManager {
82
82
@@ -106,8 +106,8 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
106
106
107
107
108
108
/**
109
- * ConnectionHandle implementation that fetches a new OpenJPA-provided Connection
110
- * for every {@code getConnection} call and closes the Connection on
109
+ * {@link ConnectionHandle} implementation that fetches a new OpenJPA-provided
110
+ * Connection for every {@code getConnection} call and closes the Connection on
111
111
* {@code releaseConnection}. This is necessary because OpenJPA requires the
112
112
* fetched Connection to be closed before continuing EntityManager work.
113
113
* @see org.apache.openjpa.persistence.OpenJPAEntityManager#getConnection()
0 commit comments