How nhuanld17/jrt-bank-demo works
Main Components
A. Presentation Layer (GUI)
• Three main GUI components:
• LoginGUI
• AdminGUI
• ClientGUI
• Use a rectangle with rounded corners to represent GUI components
B. Business Logic Layer (BUS)
• Business logic components:
• AccountBUS
• CheckingAccountBUS
• SavingAccountBUS
• ClientBUS
• TransactionBUS
C. Data Access Layer (DAO)
• DAO components:
• AccountDAO
• CheckingAccountDAO
• SavingAccountDAO
• ClientDAO
• TransactionDAO
• DBcon (Database Connection)
D. Server Components
• Include:
• Server
• ClientHandler
E. Support Components
• Utility components:
• SIDEFUNCTION package (HashPassword, SendMailOTP, etc.)
• COMPONENT package (Custom UI components)
• Use ovals
Relationships to Illustrate
A. Data Flow
• GUI → BUS → DAO → Database
• Server ↔ ClientHandler
• Client GUI ↔ Server
B. Dependencies
• Library dependencies:
• JFreeChart for charts/graphs
• MySQL Connector
• JavaMail API
Specific Implementation Details
A. Architecture Pattern
• 3-tier architecture:
• Presentation (GUI)
• Business Logic (BUS)
• Data Access (DAO)
B. Network Communication
• Client-server communication
• How ClientHandler manages multiple client connections
Additional Elements
A. External Systems
• Email Server (for OTP functionality)
• Database Server
B. Security Components
• Password Hashing
• OTP Generation/Validation
Notes
• Annotations for important features like:
• Authentication flow
• Transaction processing
• Account management
• Real-time updates
External service integration
Remember to maintain a balance between detail and clarity, focusing on the architectural decisions that make this banking application secure, scalable, and maintainable.