Database accessing middleware based on factory pattern and strategy pattern
COMPUTER MODELLING & NEW TECHNOLOGIES 2014 18(12B) 494-499
1TransportationManagement College, Dalian Maritime University, Dalian116026, Liaoning, China
2Schoos of Management,Liaoning Normal University, Dalian 116029, Liaoning, China
On the detail discussion of database accessing technology, this paper puts forward a database accessing middleware with combination of factory pattern and strategy pattern, andapplying this database accessing middleware in the construction of a deli network trades platform. The actual application shows that this proposed middleware contributes to simplification of code fragment. Moreover, it enhances system extensibility and maintainability through the Factory and Strategy design pattern, and makes data processing more flexible, easier to modify and reuse.