From 29a787fb0187e5dc6affd5aac8776cf1d629635f Mon Sep 17 00:00:00 2001 From: Matthew Adams Date: Tue, 26 Aug 2014 17:40:31 -0500 Subject: [PATCH] DATACASS-157: added throw directive --- .../org/springframework/cassandra/core/CqlTemplate.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spring-cql/src/main/java/org/springframework/cassandra/core/CqlTemplate.java b/spring-cql/src/main/java/org/springframework/cassandra/core/CqlTemplate.java index 21acbd5b4..f4d3106a4 100644 --- a/spring-cql/src/main/java/org/springframework/cassandra/core/CqlTemplate.java +++ b/spring-cql/src/main/java/org/springframework/cassandra/core/CqlTemplate.java @@ -80,7 +80,6 @@ import com.datastax.driver.core.querybuilder.Update; * extraction. This class execute CQL Queries, provides different ways to extract/map results, and provides Exception * translation to the generic, more informative exception hierarchy defined in the org.springframework.dao * package. - * *

* For working with POJOs, use the {@link CassandraDataTemplate}. *

@@ -194,8 +193,7 @@ public class CqlTemplate extends CassandraAccessor implements CqlOperations { /** * Blank constructor. You must wire in the Session before use. */ - public CqlTemplate() { - } + public CqlTemplate() {} /** * Constructor used for a basic template configuration @@ -834,10 +832,8 @@ public class CqlTemplate extends CassandraAccessor implements CqlOperations { PreparedStatement ps = psc.createPreparedStatement(getSession()); return action.doInPreparedStatement(ps); } catch (DriverException dx) { - translateExceptionIfPossible(dx); + throw translateExceptionIfPossible(dx); } - - return null; } @Override