Ibatis ing file configuration ..

Source: Internet
Author: User

(1) ID
The operation ID is specified.CodeBy specifying the operation ID.
Such:
Sqlmap. Update ("updateuser", user );
Id setting makes it possible to define two nodes with the same name in a configuration file (two update sections
Point, differentiated by different IDs)
(2) parameterclass
Specifies the parameter type required for the operation. In this example, the update operation uses
Com. ibatis. sample. User Type object as a parameter, the goal is to provide the user
The instance is updated to the database.
In parameterclass = "user", the user is "com. ibatis. sample. User"
Class alias, which can be specified by the typealias node, as shown in the sample configuration file:
<Typealias alias = "user" type = "com. ibatis. sample. User"/>
(3) <! [CDATA [……]>
Pass <! [CDATA [……]> Nodes to avoid character pairs that conflict with XML specifications in SQL
The validity of the XML ing file has an impact.
(4) SQL statement used to execute the update operation. The SQL statement here is the SQL statement supported by the actual database.
Enter the ibatis parameter and submit it to the database for execution.
The username parameter required by explain SQL. "# name #" is the name of the passed-in user object at runtime.
Attribute filling.
The user gender parameter "# Sex #" required by explain SQL will be
Sex property filling.
The condition parameter "# ID #" required by explain SQL will be the ID attribute of the passed-in user object at runtime
Fill.

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.