Just Spring Data Access - Helion
ISBN: 978-14-493-3986-9
stron: 78, Format: ebook
Data wydania: 2012-06-09
Księgarnia: Helion
Cena książki: 63,74 zł (poprzednio: 74,99 zł)
Oszczędzasz: 15% (-11,25 zł)
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
Osoby które kupowały "Just Spring Data Access", wybierały także:
- Wprowadzenie do Javy. Programowanie i struktury danych. Wydanie XII 193,23 zł, (59,90 zł -69%)
- Spring i Spring Boot. Kurs video. Testowanie aplikacji i bezpiecze 129,00 zł, (51,60 zł -60%)
- Metoda dziel i zwyci 89,00 zł, (35,60 zł -60%)
- JavaFX. Kurs video. Wzorce oraz typy generyczne 79,00 zł, (31,60 zł -60%)
- Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform 99,00 zł, (39,60 zł -60%)
Spis treści
Just Spring Data Access eBook -- spis treści
- Just Spring Data Access
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Foreword
- Preface
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Basics
- Using Plain JDBC
- Spring Data Access
- Templates
- MySQL Database Scripts
- Using JdbcTemplate
- Configuring a DataSource
- Configuring JdbcTemplate
- Working with JdbcTemplate
- Querying for Single and Multiple Rows
- Bind Variables
- Mapping Rows to Domain Objects
- Fetching List of Trades
- Inserting, Deleting, and Updating Rows
- Executing Statements
- Summary
- 2. Advanced Concepts
- NamedParameterJdbcTemplate
- Using Map
- Using SqlParameterSource
- Jdbc Batching
- Using SqlParameterSourceUtils
- Using BatchPreparedStatementSetter
- Simple JDBC Classes
- SimpleJDBCInsert Class
- SimpleJdbcCall Class
- In-Memory Databases
- Callbacks
- PreparedStatement Callback
- Callable Statement Callbacks
- Row Callbacks
- Summary
- NamedParameterJdbcTemplate
- 3. Hibernate
- Two-Minute Hibernate
- Using Spring Hibernate
- Basic Setup
- Hibernate Operations
- Finding a Single Row
- Finding Multiple Rows
- Deleting Single Trade
- Deleting Multiple Trades
- Springs Job Is Done
- Using HibernateTemplate
- Hibernate Support Classes
- Transactions
- Summary
- 4. Spring JPA
- Two-Minute JPA
- Using Spring
- Standalone Factory
- Container Factory
- Configuring the Factory
- Transactions
- Using Plain JPA API
- Using JpaTemplate
- Support Classes
- Summary
- 5. Spring JDO
- Spring Support
- Plain JDO API
- Persistent Entity
- Persistence DAO
- Wiring the Pieces
- Bytecode Enhancers
- Example Test
- Working with JdoTemplate
- Support Classes
- JDO versus JPA versus Hibernate
- Summary
- About the Author
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright