(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.