Ibatis in Action (Paperback)
暫譯: Ibatis 實戰

Clinton Begin, Brandon Goodin, Larry Meadors

  • 出版商: Manning
  • 出版日期: 2007-04-03
  • 定價: $1,575
  • 售價: 8.8$1,386
  • 語言: 英文
  • 頁數: 384
  • 裝訂: Paperback
  • ISBN: 1932394826
  • ISBN-13: 9781932394825
  • 相關分類: Java 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Description

“Unique and invaluable, this book will be at my side for years to come.”
—Nathan Maves, Senior Java Architect, Sun Microsystems

“This book really shines.”
—Benjamin Gorlick, Global Engineered Products, LLC.

“The writing is good, relaxed, and sometimes fun.”
—Dick Zetterberg, Transitor AB

“Gets new users going and gives experienced users in-depth coverage of advanced features.”
—Jeff Cunningham, The Weather Channel Interactive

“Easy flow, good breakdown of topics, relevant and thorough—valuable for all.”
—Rick Reumann, Nielsen Media Research

Unlike some complex and invasive persistence solutions, iBATIS keeps O/RM clean and simple. It is an elegant persistence framework that maps classes to SQL statements and keeps the learning curve flat. The iBATIS approach makes apps easy to code, test, and deploy. You write regular SQL and iBATIS gives you standard objects for persistence and retrieval. Theres no need to change existing database schemas—iBATIS is tolerant of legacy databases (even badly designed ones).

iBATIS in Action is a comprehensive tutorial on the framework and an introduction to the iBATIS philosophy. Clinton Begin and coauthors lead you through the core features, including configuration, statements, and transactions. Because youll need more than the basics, it explores sophisticated topics like Dynamic SQL and data layer abstraction. Youll also learn a useful skill: how to extend iBATIS itself. A complete, detailed example shows you how to put iBATIS to work. Topics are clearly organized and easily accessible for reference.

 

Table of contents

preface
acknowledgments
about this book
about the authors
about the title
about the cover illustration

Part 1 Introduction

1 The iBATIS philosophy
1.1 A hybrid solution: combining the best of the best
1.2 Where iBATIS fits
1.3 Working with different database types
1.4 How iBATIS handles common database challenges
1.5 Summary
2 What is iBATIS?
2.1 Mapping SQL
2.2 How it works
2.3 Why use iBATIS?
2.4 When not to use iBATIS
2.5 iBATIS in five minutes
2.6 The future: where is iBATIS going?
2.7 Summary

Part 2 iBATIS basics

3 Installing and configuring iBATIS
3.1 Getting an iBATIS distribution
3.2 Distribution contents
3.3 Dependencies
3.4 Adding iBATIS to your application
3.5 iBATIS and JDBC
3.6 iBATIS configuration continued
3.7 Summary
4 Working with mapped statements
4.1 Starting with the basics
4.2 Using <select> mapped statements
4.3 Mapping parameters
4.4 Using inline and explicit result maps
4.5 Summary
5 Executing nonquery statements
5.1 The building blocks for updating data
5.2 Inserting data
5.3 Updating and deleting data
5.4 Running batch updates
5.5 Working with stored procedures
5.6 Summary
6 Using advanced query techniques
6.1 Using XML with iBATIS
6.2 Relating objects with mapped statements
6.3 Inheritance
6.4 Other miscellaneous uses
6.5 Summary
7 Transactions
7.1 What is a transaction?
7.2 Automatic transactions
7.3 Local transactions
7.4 Global transactions
7.5 Custom transactions
7.6 Demarcating transactions
7.7 Summary
8 Using Dynamic SQL
8.1 Dealing with Dynamic WHERE clause criteria
8.2 Getting familiar with the dynamic tags
8.3 A complete simple example
8.4 Advanced Dynamic SQL techniques
8.5 Alternative approaches to Dynamic SQL
8.6 The future of Dynamic SQL
8.7 Summary

Part 3 iBATIS in the real world

9 Improving performance with caching
9.1 A simple iBATIS caching example
9.2 iBATISs caching philosophy
9.3 Understanding the cache model
9.4 Using tags inside the cache model
9.5 Cache model types
9.6 Determining a caching strategy
9.7 Summary
10 iBATIS data access objects
10.1 Hiding implementation details
10.2 Configuring the DAO
10.3 Configuration tips
10.4 A SQL Map DAO implementation example
10.5 Summary
11 Doing more with DAO
11.1 Non-SQLMap DAO implementations
11.2 Using the DAO pattern with other data sources
11.3 Using the Spring DAO
11.4 Creating your own DAO layer
11.5 Summary
12 Extending iBATIS
12.1 Understanding pluggable component design
12.2 Working with custom type handlers
12.3 Working with a CacheController
12.4 Configuring an unsupported DataSource
12.5 Customizing transaction management
12.6 Summary

Part 4 iBATIS recipes

13 iBATIS best practices
13.1 Unit testing with iBATIS
13.2 Managing iBATIS configuration files
13.3 Naming conventions
13.4 Beans, maps, or XML?
13.5 Summary
14 Putting it all together
14.1 Design concept
14.2 Choosing technologies
14.3 Tweaking Struts: the BeanAction
14.4 Laying the foundation
14.5 Configuring the web.xml
14.6 Setting up the presentation
14.7 Writing your service
14.8 Writing the DAO
14.9 Summary
 
iBATIS.NET Quick Start
index 1

商品描述(中文翻譯)

**描述**

“獨特且無價,這本書將伴隨我多年。”
—Nathan Maves,Sun Microsystems 高級 Java 架構師

“這本書真的很出色。”
—Benjamin Gorlick,Global Engineered Products, LLC.

“寫作風格良好,輕鬆,有時甚至有趣。”
—Dick Zetterberg,Transitor AB

“讓新用戶上手,並為經驗豐富的用戶提供深入的高級功能介紹。”
—Jeff Cunningham,The Weather Channel Interactive

“流暢易讀,主題劃分良好,相關且全面—對所有人都有價值。”
—Rick Reumann,Nielsen Media Research

與一些複雜且侵入性的持久性解決方案不同,iBATIS 保持了 O/RM 的簡潔與清晰。它是一個優雅的持久性框架,將類映射到 SQL 語句,並保持學習曲線平緩。iBATIS 的方法使應用程式易於編碼、測試和部署。您可以編寫常規 SQL,而 iBATIS 則為持久性和檢索提供標準對象。無需更改現有的資料庫架構—iBATIS 對舊有資料庫(即使是設計不良的資料庫)也很寬容。

《iBATIS 實戰》是一本關於該框架的全面教程,並介紹了 iBATIS 的理念。Clinton Begin 和共同作者將引導您了解核心功能,包括配置、語句和事務。因為您需要的不僅僅是基礎知識,它還探討了動態 SQL 和數據層抽象等複雜主題。您還將學到一項有用的技能:如何擴展 iBATIS 本身。一個完整且詳細的範例將展示如何將 iBATIS 應用於實際工作。主題組織清晰,便於參考。

**目錄**

前言
致謝
關於本書
關於作者
關於書名
關於封面插圖

**第一部分 介紹**
1. iBATIS 哲學
1.1 混合解決方案:結合最佳的最佳
1.2 iBATIS 的定位
1.3 與不同資料庫類型的協作
1.4 iBATIS 如何處理常見的資料庫挑戰
1.5 總結
2. 什麼是 iBATIS?
2.1 SQL 映射
2.2 它的工作原理
2.3 為什麼使用 iBATIS?
2.4 何時不使用 iBATIS
2.5 五分鐘了解 iBATIS
2.6 未來:iBATIS 的發展方向?
2.7 總結

**第二部分 iBATIS 基礎**
3. 安裝和配置 iBATIS
3.1 獲取 iBATIS 發行版
3.2 發行版內容
3.3 依賴性
3.4 將 iBATIS 添加到您的應用程式中
3.5 iBATIS 和 JDBC
3.6 iBATIS 配置續篇
3.7 總結
4. 使用映射語句
4.1 從基礎開始
4.2 使用 映射語句
4.3 映射參數
4.4 使用內聯和顯式結果映射
4.5 總結
5. 執行非查詢語句
5.1 更新數據的基本構建塊
5.2 插入數據
5.3 更新和刪除數據
5.4 執行批量更新
5.5 使用存儲過程
5.6 總結
6. 使用高級查詢技術
6.1 使用 XML 與 iBATIS
6.2 使用映射語句關聯對象
6.3 繼承
6.4 其他雜項用途
6.5 總結
7. 事務
7.1 什麼是事務?
7.2 自動事務
7.3 本地事務
7.4 全局事務
7.5 自定義事務
7.6 事務的劃分
7.7 總結
8. 使用動態 SQL
8.1 處理動態 WHERE 子句條件
8.2 熟悉動態標籤
8.3 完整的簡單範例
8.4 高級動態 SQL 技術
8.5 動態 SQL 的替代方法
8.6 動態 SQL 的未來
8.7 總結

**第三部分 iBATIS 在現實世界中的應用**
9. 通過緩存提高性能
9.1 一個簡單的 iBATIS 緩存範例
9.2 iBATIS 的緩存理念
9.3 理解緩存模型
9.4 在緩存模型中使用標籤
9.5 緩存模型類型
9.6 確定緩存策略
9.7 總結
10. iBATIS 數據訪問對象
10.1 隱藏實現細節
10.2 配置 DAO
10.3 配置提示
10.4 SQL Map DAO 實現範例
10.5 總結
11. 使用 DAO 做更多事情
11.1 非 SQLMap DAO 實現
11.2 將 DAO 模式與其他數據源結合使用
11.3 使用 Spring DAO
11.4 創建自己的 DAO 層
11.5 總結
12. 擴展 iBATIS
12.1 理解可插拔組件設計
12.2 使用自定義類型處理器
12.3 使用 CacheController
12.4 配置不受支持的 DataSource
12.5 自定義事務管理
12.6 總結

**第四部分 iBATIS 食譜**
13. iBATIS 最佳實踐
13.1 使用 iBATIS 進行單元測試
13.2 管理 iBATIS 配置文件
13.3 命名慣例
13.4 Beans、maps 還是 XML?
13.5 總結
14. 將一切整合在一起
14.1 設計概念
14.2 選擇技術
14.3 調整 Struts:BeanAction
14.4 打下基礎
14.5 配置 web.xml
14.6 設置展示層
14.7 編寫服務
14.8 編寫 DAO
14.9 總結
iBATIS.NET 快速入門
索引

最後瀏覽商品 (1)