Java Reference
In-Depth Information
Part 4
Dealing with databases
and concurrency
Part 4 looks at some important database-related issues that you often encounter
when developing an enterprise Java application. Chapter 11 describes how to
implement search screens that let the user enter search criteria and page through
the matching results. You will learn how to dynamically generate queries in a
maintainable way, efficiently query the database, and implement a paging mecha-
nism that allows the user to page through a large result set. This chapter covers
how to implement dynamic paged queries using i BATIS , JDO , and Hibernate, and
explains when you might want to use Hibernate and JDO native SQL queries.
Enterprise applications invariably have multiple users and background tasks,
which means that sometimes multiple database transactions will attempt to access
the same data simultaneously. In chapter 12, you will learn how to handle concur-
rent accesses at the database transaction level. This chapter describes how to han-
dle database concurrency in i BATIS , JDO , and Hibernate applications, and how
AOP can provide a simple way to recover from database concurrency failures.
Chapter 13 extends the concepts described in chapter 12 to handle database
concurrency across a sequence of transactions. Many web applications have edit-
style use cases that allow users to edit data in the database. The code that imple-
ments these use cases typically uses one database transaction to read the data and
another to update. In this chapter, you will learn how to handle database concur-
rency in edit-style use cases. You will learn about the various options and their
respective benefits and drawbacks.
 
Search WWH ::




Custom Search