没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
76页
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).
资源推荐
资源详情
资源评论
Just Spring Data Access
Madhusudhan Konda
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
Just Spring Data Access
by Madhusudhan Konda
Copyright © 2012 Madhusudhan Konda. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: Mike Loukides and Meghan Blanchette
Production Editor: Iris Febres
Copyeditor: Gillian McGarvey
Proofreader: Iris Febres
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Revision History for the First Edition:
2012-06-01 First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449328382 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Just Spring Data Access, the image of the channel-billed cuckoo, and related trade
dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-32838-2
[LSI]
1339616491
Table of Contents
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1. Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Using Plain JDBC 1
Spring Data Access 3
Templates 3
MySQL Database Scripts 3
Using JdbcTemplate 4
Summary 13
2. Advanced Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
NamedParameterJdbcTemplate 15
Using Map 16
Using SqlParameterSource 16
Jdbc Batching 17
Using SqlParameterSourceUtils 17
Using BatchPreparedStatementSetter 18
Simple JDBC Classes 19
SimpleJDBCInsert Class 19
SimpleJdbcCall Class 20
In-Memory Databases 21
Callbacks 23
PreparedStatement Callback 23
Callable Statement Callbacks 25
Row Callbacks 26
Summary 27
3.
Hibernate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Two-Minute Hibernate 29
iii
剩余75页未读,继续阅读
资源评论
- gyoda12013-04-02正是构思框架需要的内容,谢谢 NamedParameterJdbcTemplate Using SqlParameterSource
kineykimo
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功