🎴 Flashcard Mode
J2EE Design Patterns and Enterprise Beans
Card1 / 5
Mastered0
Review0
QuestionClick to flip
Your application will be fetching data from a centralized relational database, LDAP repositories and flat files.___________ design pattern will be appropriate for it.
AnswerClick to flip back
A
Data Access Object
💡 Explanation:
The Data Access Object pattern is ideal when accessing multiple heterogeneous data sources. Each data source type (relational database, LDAP, flat files) gets its own DAO implementation exposing a common interface. The application code works with the DAO interface, remaining unaware of underlying storage differences. Business Delegate reduces coupling, Factory creates objects, and Builder constructs complex objects; none address multi-source data access.