没有合适的资源?快使用搜索试试~ 我知道了~
MyBatis in Practice
5星 · 超过95%的资源 需积分: 9 195 下载量 162 浏览量
2015-11-30
01:16:00
上传
评论 4
收藏 756KB PDF 举报
温馨提示
试读
151页
myBatis官方推荐书籍,值得一看,市面能找到的myBatis最好的入门教程
资源推荐
资源详情
资源评论
TABLE OF CONTENTS
Preface
Structure of the Book
About the Author
Acknowledgements
Source Code, Questions and Comments
Chapter 1. Introduction to MyBatis
Advantages of MyBatis
MyBatis Architecture
Prerequisites/Setting Up the Environment
Database Configuration Settings
Oracle Installation and Database Setup
MySQL Installation and Database Setup
MyBatis Terminology
MyBatis Configuration Settings
MyBatis
MyBatis-Spring
Obtaining the Database Connection
Core JDBC
MyBatis
MyBatis-Spring
SQL Statements Syntax
XML -based
Annotation -based
Comparison between Object-Relational (OR) Mapping and MyBatis
Summary
Chapter 2. Database Operations (CRUD)
Prerequisite and Configuration Settings
MyBatis (Core)
MyBatis with Spring
MyBatis (Core)
Example 1: Querying the Data – Select Operations
Example 2: Inserting the Data – Insert Operations
Example 3: Updating the Data – Update Operations
Example 4: Deleting the Data – Delete Operations
MyBatis with Spring
Spring-based MyBatis Template
Example 5: Querying the Data –Select Operations
Example 6: Inserting the Data –Insert Operations
Example 7: Updating the Data –Update Operations
Example 8: Deleting the Data –Delete Operations
Building and Executing Dynamic SQL Statements
Core MyBatis
MyBatis with Spring
Association and Nesting Results
Sequence Numbers and Retrieving Auto-Generated Keys
Oracle
MySQL and SQL Server
Summary
Chapter 3. MyBatis Annotations
MyBatis Annotations
@Select
@Insert
@Delete
@Update
@SelectKey
@Param
@Result
@Results
@OptionsDemo Examples
Example 1: Select-Insert-Delete-Update Operations Using Annotations
Summary
Chapter 4. Executing Stored Procedures and Functions
Prerequisite and Setting -Up the Environment
Executing Stored Procedures and Functions (XML-based)
Example 1: How to Execute Stored Procedures –IN and OUT Parameters
Example 2: How to Execute Stored Procedures – CURSOR Parameters
Example 3: How to Execute Stored Functions
Executing Stored Procedures (Annotation-based Approach)
Example 5: How to Execute Stored Procedures – CURSOR Parameters
Example 6: How to Execute Stored Procedures –IN and OUT Parameters
Using XML and Annotations (Combined Approach)
Summary
Chapter 5. MyBatis-Spring Transaction Management
Advantages of Spring Transactions
Declarative and Programmatic Transaction Management
Transaction Propagation in EJB and Spring
Demo Examples
Example 1: AOP-based Declarative Transaction Management
Example 2: Programmatic Transaction Management
Transaction Management Using Spring Annotations
Example 3: Annotation-based Transaction Management
Summary
Chapter 6. MyBatis with Velocity
Prerequisite and Configuration Settings
Velocity Syntax and Fundamentals
MyBatis-Velocity Syntax and Terminology
Building and Executing Dynamic SQL Statements
Demo Examples - MyBatis with VelocityExample 1: Querying the Data – Building Dynamic SQL
Example 2: Inserting the Data – Insert Operations
Example 3: Updating the Data – Update Operations
Example 4: Deleting the Data – Delete Operations
Summary
Chapter 7. Migration from iBatis to MyBatis
Migrating from iBatis to MyBatis
iBatis to MyBatis
iBatis-Spring to MyBatis-Spring
Logging
References
MyBatis in Practice
A Step by Step Approach for Learning MyBatis Framework
Prepared by
Srinivas Mudunuri
剩余150页未读,继续阅读
2199
- 粉丝: 2
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页