For general enterprise application databases, it is necessary to generate serial numbers. serial numbers are inseparable from the generation of documents, inventory numbers, customer numbers, and so on. Therefore, from the perspective of architecture, it is necessary to create a Framework for generating serial numbers. For general applications, serial number generation is probablyCyclic serial number, date serial number, leading serial number.
Cyclic serial number: the serial number in the cyclic mode. For example, if the previous one is 0001, the next one is 0002.
Date serial number: for example, the first one is 200903080001, And the next one is 200903080002.
Leading memory type: MD00001, MD00002.
Component Diagram
Class Diagram
Write so much today. Please try again later.
You can also read several other articles on my blog:
Configuration architecture: configure the System Configuration
Cache architecture: Cache Framework)
Object factory creation --- Singleton Object, SingleCall Object, Pool Object
(Plug-In Framework) Plug-In Object Design
Link: http://www.cnblogs.com/putishu/archive/2009/03/08/1406086.html
URL: http://putishu.cnblogs.com/