-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JDBC 라이브러리 구현하기 - 2, 3단계] 히이로(문제웅) 미션 제출합니다. #455
Changes from 1 commit
3cc8a27
8c48c03
187b488
5d055df
43de97c
f0e8d17
c7a036d
7c720da
e2a74c6
49dc268
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.springframework.jdbc.core; | ||
|
||
import java.sql.PreparedStatement; | ||
import java.sql.SQLException; | ||
import org.springframework.dao.DataAccessException; | ||
|
||
@FunctionalInterface | ||
public interface PreparedStatementCallback<T> { | ||
|
||
T doInPreparedStatement(PreparedStatement ps) throws SQLException, DataAccessException; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 혹시 여기서 DataAccessException을 throws를 해주시는 이유가 있으신가요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 부분은 제가 확실히 생각하지 못한 부분이었네요! 현재는 아코가 말씀해주신 것처럼 SQLException만 외부로 throw되도록 하는 것이 더 올바른 방향인 것 같습니다. 반영했습니다~! |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깔끔하게 분리가 된거 같아요!👍👍