SerialFramework serial number generation framework

Source: Internet
Author: User

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/

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.