|
31 | 31 | import org.apache.commons.logging.Log;
|
32 | 32 | import org.apache.commons.logging.LogFactory;
|
33 | 33 | import org.jspecify.annotations.Nullable;
|
| 34 | + |
34 | 35 | import org.springframework.beans.factory.DisposableBean;
|
35 | 36 | import org.springframework.beans.factory.FactoryBean;
|
36 | 37 | import org.springframework.beans.factory.InitializingBean;
|
37 | 38 | import org.springframework.dao.DataAccessException;
|
38 |
| -import org.springframework.dao.support.PersistenceExceptionTranslator; |
39 | 39 | import org.springframework.data.cassandra.core.CassandraAdminOperations;
|
40 | 40 | import org.springframework.data.cassandra.core.CassandraAdminTemplate;
|
41 | 41 | import org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator;
|
|
72 | 72 | * @since 3.0
|
73 | 73 | */
|
74 | 74 | public class CqlSessionFactoryBean
|
75 |
| - implements FactoryBean<CqlSession>, InitializingBean, DisposableBean, PersistenceExceptionTranslator { |
| 75 | + implements FactoryBean<CqlSession>, InitializingBean, DisposableBean { |
76 | 76 |
|
77 | 77 | public static final String CASSANDRA_SYSTEM_SESSION = "system";
|
78 | 78 | public static final String DEFAULT_CONTACT_POINTS = "localhost";
|
@@ -674,7 +674,13 @@ public Class<? extends CqlSession> getObjectType() {
|
674 | 674 | return CqlSession.class;
|
675 | 675 | }
|
676 | 676 |
|
677 |
| - @Override |
| 677 | + /** |
| 678 | + * @param e |
| 679 | + * @return |
| 680 | + * @deprecated since 5.0, use {@link CassandraExceptionTranslator#translateExceptionIfPossible(RuntimeException)} |
| 681 | + * directly. |
| 682 | + */ |
| 683 | + @Deprecated(since = "5.0", forRemoval = true) |
678 | 684 | public @Nullable DataAccessException translateExceptionIfPossible(RuntimeException e) {
|
679 | 685 | return EXCEPTION_TRANSLATOR.translateExceptionIfPossible(e);
|
680 | 686 | }
|
|
0 commit comments