┌────────────────────────────────────────────────────────┐
│ Struts Framework Class │
│ Action │
└───────────────────────────▲────────────────────────────┘
│
│ (Inherits / Extends)
┌───────────────────────────┴────────────────────────────┐
│ «Abstract Class» │
│ CommonAction │
├────────────────────────────────────────────────────────┤
│ # log : Logger │
├────────────────────────────────────────────────────────┤
│ + execute(mapping, form, request, response) : Forward │
│ + commonExecute(mapping, form, req, resp)* : Forward │
└───────────────────────────┬────────────────────────────┘
│
│ (Instantiates & Uses)
.
. (Dependency via 'new')
▼
┌──────────────────────────────────────┐
│ «interface» │
│ StockQuoteManagerFactoryIF │
├──────────────────────────────────────┤
│ + createStockQuoteManager() │
└──────────────────▲───────────────────┘
│
│ (extends)
┌──────────────────┴───────────────────┐
│ «interface» │
│ DbStockQuoteManagerFactoryIF │
├──────────────────────────────────────┤
│ + getDataSource() │
└──────────────────▲───────────────────┘
│
║ (implements)
│
┌──────────────────┴───────────────────┐ creates ┌──────────────────────────────┐
│ DbStockQuoteManagerFactory ├─────────────────────────────────────►│ DatabaseStockQuoteManager │
├──────────────────────────────────────┤ ├──────────────────────────────┤
│ - dataSource : DataSource │ │ - dataSource : DataSource │
├──────────────────────────────────────┤ │ - log : Logger │
│ + DbStockQuoteManagerFactory() │ ├──────────────────────────────┤
│ + getDataSource() │ │ + setDataSource() │
│ + createStockQuoteManager() │ │ + createStockQuote() │
└──────────────────┬───────────────────┘ │ + getStockQuote() │
│ │ + updateStockQuote() │
│ (composes inner class) │ + deleteStockQuote() │
▼ └──────────────┬───────────────┘
┌──────────────────────────────────────┐ │
│ MyDataSource │◄────────────────────────────────────────────────────┘
├──────────────────────────────────────┤ (uses to get connections)
│ + getConnection() │
└──────────────────────────────────────┘
│
║ (implements)
│
┌──────────────▼───────────────┐
│ «interface» │
│ StockQuoteManagerIF │
├──────────────────────────────┤
│ + createStockQuote() │
│ + updateStockQuote() │
│ + deleteStockQuote() │
│ + getStockQuote() │
└──────────────────────────────┘
Navigation Bar
- Oracle Developer
- Date Functions
- Queries
- PL/SQL
- Oracle XML DB
- Oracle XML DB: An Example
- To Store and Select XML Data
- XMLDB : Examples of using getClobVal, getStringVal and getNumberVal
- XMLDB: Convert xml file into equivalent relational dataset
- XMLDB: XML to HTML with XSL stylesheet
- XMLDB : DBUriType
- XMLDB : XML Functions continued ...
- XMLElement, XMLAttributes, XMLAgg, XMLForest - Examples
- JSON in Oracle
- Working with JSONs in Oracle
- PL/SQL Object Types and Methods for JSON
- Oracle JSON : Select Level 1 and Level 2 data
- A JSON generator using SQL and PLSQL
- XML to JSON and JSON to XML
- Parsing a JSON object with Oracle PLSQL
- Parsing and updating a JSON object using PLSQL
- A generic JSON parser with update using Oracle PL/SQL
- A generic multi level JSON object parse and update script using PLSQL
- A generic JSON parser and JSON generator using a config table
- A generic JSON generator using a config table
- Common Oracle Errors
- Exception Handling
- Archiving
- Reclaim tablespace size after a large table delete
- Data Archiving in Oracle
- Archiving a generic solution - Part 1
- Archiving a generic solution - Part 2
- Archiving a generic solution - Part 3
- Archiving a generic solution - Part 4
- Archiving a generic solution - Part 5
- Archiving a generic solution - Part 6 - Deploy and Test
- Archiving - Case Study for optimizing disk space utilization with archiving
- Archiving : Changes for data replication
- Archiving : A case study for data replication
- Data Replication : Using Change Notification and DBMS_SCHEDULER as a LISTENER
- Oracle DBA
- Knowledge Base
- Linux
- Oracle Dewdrops
- Newsletters
- Java
Saturday, June 26, 2010
Struts 1.1 : StockCode project using Java Design Patterns
For an understanding of Java design patterns one can refer to the below post
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment