Skip to content
This repository was archived by the owner on Jun 18, 2020. It is now read-only.

Commit 1d12f2e

Browse files
author
Thomas Risberg
committed
DATAJDBC-25 Adding throws clasue for SQLException to doInSqlInsertWithKeyClause
1 parent a24144e commit 1d12f2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-data-jdbc-core/src/main/java/org/springframework/data/jdbc/query/SqlInsertWithKeyCallback.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import com.mysema.query.sql.dml.SQLInsertClause;
2020

21+
import java.sql.SQLException;
22+
2123
/**
2224
* An interface used by {@link QueryDslJdbcTemplate} for insert calls
2325
* where you are able to provide a {@link SQLInsertClause}
@@ -31,6 +33,6 @@
3133
*/
3234
public interface SqlInsertWithKeyCallback<K> {
3335

34-
K doInSqlInsertWithKeyClause(SQLInsertClause insert);
36+
K doInSqlInsertWithKeyClause(SQLInsertClause insert) throws SQLException;
3537

3638
}

0 commit comments

Comments
 (0)