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