Just Spring Data Access (Paperback)

Madhusudhan Konda

  • 出版商: O'Reilly
  • 出版日期: 2012-07-17
  • 定價: $660
  • 售價: 8.0$528
  • 語言: 英文
  • 頁數: 76
  • 裝訂: Paperback
  • ISBN: 1449328385
  • ISBN-13: 9781449328382
  • 相關分類: Java 相關技術
  • 立即出貨 (庫存 < 3)

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

商品描述

JDBC has simplified database access in Java applications, but a few nagging wrinkles remain—namely, persisting Java objects to relational databases. With this book, you’ll learn how the Spring Framework makes that job incredibly easy with dependency injection, template classes, and object-relational-mapping (ORM).

Through sample code, you’ll discover how Spring streamlines the use of JDBC and ORM tools such as Hibernate, the Java Persistence API (JPA), and Java Data Objects (JDO). If you’re a Java developer familiar with Spring (perhaps through O’Reilly’s Just Spring tutorial) and want to advance your data access skills, this book shows you how.

  • Learn how to use Spring’s basic and advanced data access tools
  • Work with Spring’s JdbcTemplate class to separate non-critical code from business code
  • Eliminate placeholder variables in your queries with the NamedParameterJdbcTemplate class
  • Use Spring’s template classes to perform batch executions
  • Operate inserts on database tables without writing any SQL statements
  • Learn about Spring’s support for Hibernate as an object-relational-mapping tool
  • Use JPA as a standards-based ORM—alone or with Spring support
  • Move data from a relational to a non-relational database with JDO

商品描述(中文翻譯)

JDBC已經在Java應用程式中簡化了對資料庫的存取,但仍然存在一些困擾的問題,即將Java物件持久化到關聯式資料庫。這本書將教你如何使用Spring Framework的依賴注入、模板類和物件關聯映射(ORM)來輕鬆完成這項任務。

通過示例代碼,你將了解Spring如何簡化JDBC和ORM工具(如Hibernate、Java持久化API(JPA)和Java數據對象(JDO))的使用。如果你是一位熟悉Spring的Java開發人員(可能通過O'Reilly的《Just Spring》教程),並且想提升你的資料存取技能,這本書將向你展示如何做到這一點。

本書內容包括:
- 學習如何使用Spring的基本和高級資料存取工具
- 使用Spring的JdbcTemplate類將非關鍵代碼與業務代碼分離
- 使用NamedParameterJdbcTemplate類來消除查詢中的佔位符變數
- 使用Spring的模板類執行批量操作
- 在不編寫任何SQL語句的情況下對資料庫表進行插入操作
- 了解Spring對Hibernate作為物件關聯映射工具的支持
- 使用JPA作為基於標準的ORM,可以單獨使用或與Spring支持一起使用
- 使用JDO將資料從關聯式資料庫移動到非關聯式資料庫

這本書將幫助你深入了解Spring在資料存取方面的強大功能,並提供實用的示例和技巧,讓你更加熟練地使用Spring Framework。