Skip to content

Conversation

@bbx8216
Copy link
Member

@bbx8216 bbx8216 commented Nov 13, 2023

#8
Statement를 상속한 PreparedStatement를 구현하고 addBatch, executeBatch, clearBatch는 Statement에 구현하였습니다.

클래스 구조는 아래와 같고, Decorator Pattern을 적용시켜볼 수 있을 것 같습니다.
image

bbx8216 and others added 15 commits November 9, 2023 21:10
- 필요한 list 선언
- addBatch, executeBatch, clearBatch 선언
- JDBCConnection에서 preparedStatement()추가
- JDBCPreparedStatement 클래스 구현 (추가 구현 필요)
- JDBCStatment에서 필요없는 부분(prepared) 삭제
- JDBCTest에서 batchExecution 수정
- StatementAdapter에 implements로 PreparedStatement 추가
- PreparedStatement는 Statement를 상속하고 있고, 사용시 type을 맞춰주었음
- mutex구현을 위한 checkClosed()반환값, 공개범위 수정
@bbx8216
Copy link
Member Author

bbx8216 commented Nov 22, 2023

이전 Batch-impl로 수정한 구조의 Batch-impl을 이후 다시 머지합니다.

@bbx8216 bbx8216 merged commit 40db0ea into main Nov 22, 2023
@bbx8216 bbx8216 mentioned this pull request Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants