DAOFactory

1 개요[ | ]

DAOFactory
DAO팩토리

 

 

 

2 예시[ | ]

public class DaoFactory {
   public UserDao userDao() {
      return new UserDao(connectionMaker());
   }

   public AccountDao accountDao() {
      return new AccountDao(connectionMaker());
   }

   public ConnectionMaker connectionMaker() {
      return new DConnectionMaker();
   }
}

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}