-
Notifications
You must be signed in to change notification settings - Fork 300
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 라이브러리 구현하기 - 1단계] 후디(조동현) 미션 제출합니다. #115
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d572591
feat: update 및 query 메소드 구현
devHudi 4c0bb9f
feat: queryForObject 구현
devHudi 18f4001
refactor: UserDao의 DataSource 필드 제거
devHudi e52077c
refactor: 람다를 사용한 템플릿 메소드 패턴을 사용해 중복 코드 제거
devHudi 32cf14d
refactor: User에 대한 RowMapper를 상수로 등록
devHudi 60342cc
fix: executeUpdate에 SQL을 전달하는 코드를 제거
devHudi f5876a1
refactor: RowMapper의 run 메소드가 SQLException 처리를 미루도록 변경
devHudi 1277be0
refactor: queryForObject가 query 메소드를 재사용하도록 하여 중복 코드 제거
devHudi 3ea42e7
refactor: ThrowingFunction 함수형 인터페이스를 정의하여 불필요한 try - catch 제거
devHudi 6fbe883
feat: 예외 발생시 로그하도록 개선
devHudi 536a3b0
refactor: ResultSet에서 값을 꺼내올 때 인덱스 대신 컬럼 이름으로 꺼내오도록 개선
devHudi 6dee265
refactor: PreparedStatement에 파라미터를 매핑하는 로직을 메소드 추출
devHudi 90ed577
refactor: ResultSet을 객체 리스트로 매핑하는 로직을 메소드로 분리
devHudi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package nextstep.jdbc; | ||
|
||
import java.sql.ResultSet; | ||
import java.sql.SQLException; | ||
|
||
@FunctionalInterface | ||
public interface RowMapper<T> { | ||
|
||
T run(final ResultSet rs); | ||
T run(final ResultSet rs) throws SQLException; | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👍