What Is business logic

Source: Internet
Author: User
Business logic is the logic that processes data. The general background code is also divided into three layer Action (Controller) service DAO (here The three layer is not MVC)

For example, I get the username, but when I save the database, the user name field should be the foreground user name plus the current date to spell the string

Action or controller layer is the first layer is generally used to accept data and do not empty AH format is the correct authentication
If the user name is empty is not a secure string, such as

The service layer is typically used to make a business logic implementation
At this time UserName = UserName + new Date ();

The DAO layer is the interaction layer with the database
That is, the read-write database inserts the new username from the logical layer into the database

What Is business logic

Related Article

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.