본문 바로가기

중간평가6

중간평가 (Service) > package disassemble.Service; import java.text.SimpleDateFormat; import java.util.Date; import disassemble.DAO.MemberDAO; import disassemble.DTO.MemberDTO; import disassemble.DTO.RegisterRequest; public class MemberRegisterService { private MemberDAO memberDao; public MemberRegisterService(MemberDAO memberDao) { this.memberDao = memberDao; } public void regist(RegisterRequest req) { // password.. 2022. 8. 10.
중간평가 (DTO, DAO) > package disassemble.DTO; public interface IMemberDTO { public void setEmail(String email); public void setPassword(String password); public void setName(String name); public void setRegisterDate(String registerDate); public String getEmail(); public String getPassword(); public String getName(); public String getRegisterDate(); } > package disassemble.DTO; //SQL> CREATE TABLE disassemble ( // .. 2022. 8. 10.
중간평가 (Main) package disassemble.main; import java.util.Scanner; import disassemble.DAO.MemberDAO; import disassemble.DTO.RegisterRequest; import disassemble.Service.ChangePasswordService; import disassemble.Service.Exit; import disassemble.Service.MemberAllService; import disassemble.Service.MemberDeleteService; import disassemble.Service.MemberRegisterService; public class Main { private static MemberDAO m.. 2022. 8. 10.
중간평가 (Service) > package disassemble.Service; import java.text.SimpleDateFormat; import java.util.Date; import disassemble.DAO.*; import disassemble.DTO.*; public class MemberRegisterService { private MemberDAO memberDao; public MemberRegisterService(MemberDAO memberDao) { this.memberDao = memberDao; } public void regist(RegisterRequest req) { // password == confirmPassword // email로 계정 등록 여부 확인 // memberDao.i.. 2022. 8. 10.