Examples of common Java interfaces

Source: Internet
Author: User

This document is documented in the one months of the development process of the front and back, the record Java Common Interface example, in case of time to forget: Java Common interface, as follows: Return object/return array/Return Boolean value Insert data/modify data/delete data
Exact query/fuzzy query max /min Multi-table multi-criteria query, return list of multiple table query corresponding property, return list with target attribute uniqueness validation The Java ToolPak is used as follows: enumeration classes use functions with the "max" scenario: automatically get employee number; Description: one Table, query maximum value; code: "Controller Layer"

"Service Layer"

"DAO Layer-XML (DAO layer code encapsulates SQL statement for data query)"

"Multi-table multi-criteria query, return list" Application scenario: Query product columns according to product attributes; Description: Two tables, according to the conditions of table 1 (multi-Select) query table 2 data; thought: The front-end query condition returns the "A,b,c" string, the backend accepts the decomposition needs a circular query; code: "Service Layer"

"DAO Layer-XML"

Examples of common Java interfaces

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.