Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 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.
|
||||
@@ -26,19 +26,15 @@ import org.springframework.transaction.TransactionDefinition;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
|
||||
/**
|
||||
* SPI strategy that encapsulates certain functionality that standard JPA 2.0
|
||||
* does not offer, such as access to the underlying JDBC Connection. This
|
||||
* strategy is mainly intended for standalone usage of a JPA provider; most
|
||||
* of its functionality is not relevant when running with JTA transactions.
|
||||
* SPI strategy that encapsulates certain functionality that standard JPA 2.0 does
|
||||
* not offer, such as access to the underlying JDBC Connection. This strategy is
|
||||
* mainly intended for standalone usage of a JPA provider; most of its functionality
|
||||
* is not relevant when running with JTA transactions.
|
||||
*
|
||||
* <p>Also allows for the provision of value-added methods for portable yet
|
||||
* more capable EntityManager and EntityManagerFactory subinterfaces offered
|
||||
* by Spring.
|
||||
*
|
||||
* <p>In general, it is recommended to derive from DefaultJpaDialect instead of
|
||||
* implementing this interface directly. This allows for inheriting common
|
||||
* behavior (present and future) from DefaultJpaDialect, only overriding
|
||||
* specific hooks to plug in concrete vendor-specific behavior.
|
||||
* <p>In general, it is recommended to derive from {@link DefaultJpaDialect} instead
|
||||
* of implementing this interface directly. This allows for inheriting common behavior
|
||||
* (present and future) from DefaultJpaDialect, only overriding specific hooks to
|
||||
* plug in concrete vendor-specific behavior.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @author Rod Johnson
|
||||
@@ -141,9 +137,8 @@ public interface JpaDialect extends PersistenceExceptionTranslator {
|
||||
* an implementation should use a special handle that references that other object.
|
||||
* @param entityManager the current JPA EntityManager
|
||||
* @param readOnly whether the Connection is only needed for read-only purposes
|
||||
* @return a handle for the JDBC Connection, to be passed into
|
||||
* {@code releaseJdbcConnection}, or {@code null}
|
||||
* if no JDBC Connection can be retrieved
|
||||
* @return a handle for the Connection, to be passed into {@code releaseJdbcConnection},
|
||||
* or {@code null} if no JDBC Connection can be retrieved
|
||||
* @throws javax.persistence.PersistenceException if thrown by JPA methods
|
||||
* @throws java.sql.SQLException if thrown by JDBC methods
|
||||
* @see #releaseJdbcConnection
|
||||
|
||||
Reference in New Issue
Block a user