skip to content
Java persistence for relational databases Preview this item
ClosePreview this item
Checking...

Java persistence for relational databases

Author: Richard Sperko
Publisher: Berkeley, Calif. : Apress, ©2003.
Edition/Format:   Print book : EnglishView all editions and formats
Summary:

Sperko focuses on the overall problem of how to store the primary component of any Java application, the Java object, in the most common business tool: the relational database.

Rating:

(not yet rated) 0 with reviews - Be the first.

Subjects
More like this

 

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...

Details

Additional Physical Format: Online version:
Sperko, Richard.
Java persistence for relational databases.
Berkeley, Calif. : Apress, ©2003
(OCoLC)606996577
Online version:
Sperko, Richard.
Java persistence for relational databases.
Berkeley, Calif. : Apress, ©2003
(OCoLC)607831902
Document Type: Book
All Authors / Contributors: Richard Sperko
ISBN: 1590590716 9781590590713
OCLC Number: 52359438
Notes: Includes index.
Description: xxv, 337 pages : illustrations ; 24 cm
Contents: Chapter 1 All Kinds of Methods for Persisting Objects 1 --
Storing Objects to Simple Data Files 3 --
Using Java Serialization 4 --
Storage Using XML 8 --
Object Databases for Transparent Persistence 10 --
The Value of Relational Databases 12 --
Using an Object-Relational Persistence Layer 14 --
Chapter 2 Understanding Relational Database Management Systems 17 --
What Does a Relational Database Do? 17 --
How Relational Databases Work 19 --
Ensuring Good Data Through Transactions 21 --
Database Design 22 --
Gathering Requirements 23 --
Data Modeling 23 --
Normalization in Database Design 23 --
Reviewing Structured Query Language 27 --
Creating a New Database 28 --
Creating New Tables 29 --
Inserting Data into Tables 30 --
Updating Data with SQL 30 --
Deleting Data with SQL 31 --
Selecting Data from Tables 31 --
Chapter 3 Using JDBC 1 for Relational Database Work 35 --
Different Types of Drivers 37 --
How to Use JDBC 38 --
Creating the Database 41 --
Creating the Tables 47 --
Using a Statement to Create Tables 48 --
Using a JDBC Statement to Insert Data 50 --
Using JDBC to Update Data 51 --
Obtaining Data and Querying via JDBC 51 --
Using Basic JDBC Transactions 55 --
Optimizing Performance with JDBC 56 --
First Culprit Is Probably the SQL 57 --
Know Your Driver 58 --
Use Prepared Statements for Repeated SQL 58 --
Manage Resources Carefully 59 --
Watch Out for Premature Optimization 60 --
Chapter 4 What Is New in JDBC 2 and 3 63 --
Result Set Running Wild 64 --
Using Batch Updates to Execute Multiple SQL Statements 68 --
JDBC 2.0 Optional Package 71 --
Using JNDI to Obtain a Connection 71 --
Using a Data Source to Create Connections 72 --
Saving System Resources Through Connection Pooling 73 --
Distributed Transactions 73 --
Row Sets 74 --
JDBC 3.0 75 --
Bookmark Your Transaction with Savepoints 75 --
Using Database Auto-Generated Keys 76 --
Chapter 5 Writing a Persistence Layer 81 --
Writing Your First Data Access Object 83 --
Types of Object Search Criteria 83 --
Search Methods 84 --
Search by Example 86 --
Search languages 92 --
The Rest of the CRUD 92 --
Inserting New Objects 93 --
Chapter 6 Persistence-Related Design Patterns 99 --
The Value of Patterns 100 --
Using the Builder Pattern for SQL Generation 102 --
SQL Statements As Objects 102 --
Director of the Construction 103 --
The Builder's Superclass 104 --
Creating an InsertBuilder 104 --
Using the Strategy Pattern to Handle Different Databases 108 --
Using the Facade Pattern to Simplify Queries 116 --
Using a Facade That Wraps JDBC Queries 117 --
Inside the QueryFacade 119 --
Supporting the QueryFacade 121 --
Chapter 7 Unit Testing Persistence Layers 123 --
JUnit: A Java Unit-Testing Framework 124 --
Dissecting JUnit 124 --
Test-Driven Development 127 --
Run All Tests with a TestPackage Unit Test 132 --
Unit Testing Data Access Objects and Persistence Layers 133 --
Testing JDBC Using Mock Objects 134 --
Writing Tests with Mock Objects 135 --
Chapter 8 Enterprise JavaBeans: Container Managed Persistence 2.0 139 --
Parts of an Entity Enterprise JavaBean 140 --
Container Managed Persistence Contracts 142 --
Persistent Fields 142 --
Primary Keys 143 --
Relationships 143 --
Deployment Descriptor 144 --
Life Cycle of a CMP Entity Bean 147 --
Creating Objects 148 --
Modifying Objects 148 --
Removing Objects 148 --
EJB QL 149 --
Using Sun's Reference Implementation 150 --
Local Home Interfaces 151 --
Local Interfaces 152 --
Container Managed Persistent Entity Beans 154 --
A Deployment Descriptor Example 158 --
Unit Test Client 161 --
Deploying and Running 168 --
Chapter 9 Writing to the ODMG 3.0 175 --
Object Model 176 --
Working with Objects 178 --
Object Identity and Names 178 --
Adding Objects to and Removing Objects from Persistence 183 --
Modifying Persisted Objects 186 --
Querying for Objects 187 --
Object Query Language 187 --
Querying from Java 188 --
Chapter 10 Persistence with Java Data Objects (JDO) 191 --
What Is a JDO Implementation? 192 --
Overview of the JDO Architecture 192 --
Source and Byte-Code Enhancing 193 --
JDO Transactions and What Happens After the Rollback 195 --
Querying with JDOQL 195 --
Getting All Instances in Extents 196 --
JDO Class Restrictions and Requirements 196 --
Different Types of JDO Identity 197 --
JDO XML Metadata 198 --
How You Can Use JDO to Persist Your Objects 199 --
Example Business Objects 199 --
Performing the JDO Work 204 --
Using the Sun JDO Reference Implementation 213 --
Chapter 11 Open Source Java Persistence Libraries and Frameworks 219 --
Hibernate for Persistence 221 --
Setting Up Hibernate 221 --
Hibernate Mapping Files 223 --
Working with Hibernate 225 --
Hibernate Query Language 235 --
Other Hibernate Notes 236 --
ObJectRelationalBridge for Persistence 237 --
Setting Up OJB 238 --
Building the User Repository 239 --
Working with OJB 241 --
Castor JDO 251 --
Setting Up Castor JDO 251 --
Configuring Castor JDO 252 --
Working with Castor JDO 253 --
Other Castor JDO Notes 265 --
Some of the Other Libraries 266 --
Chapter 12 Commercial Java Persistence Libraries and Frameworks 267 --
Using TopLink for Java Persistence 268 --
Obtaining and Setting Up TopLink 268 --
TopLink Configuration 268 --
Working with TopLink 269 --
Other TopLink Notes 288 --
Using CocoBase for Java Persistence 288 --
Setting Up CocoBase 289 --
Writing Code for CocoBase 289 --
Working with CocoAdmin 298 --
Other CocoBase Notes 305 --
All Kinds of Methods of Persisting Objects 307 --
Understanding Relational Database Management Systems 308 --
Using JDBC 1 for Relational Database Work 309 --
Writing a Persistence Layer 312 --
Persistence-Related Design Patterns 313 --
Unit Testing Persistence Layers 314 --
Enterprise JavaBeans: Container Managed Persistence 2.0/2.1 315 --
Writing to ODMG 3.0 315 --
Persistence with Java Data Objects 316 --
Open Source Java Persistence Libraries and Frameworks 317 --
Commercial Java Persistence Libraries and Frameworks 317 --
Finally 318.
Responsibility: Richard Sperko.

Reviews

Editorial reviews

Publisher Synopsis

From the reviews:"Richard Sperko's Java Persistence for Relational Databases does an admirable job of outlining the problems and of explaining what the different solutions have to offer. ... In Read more...

 
User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...

Tags

Be the first.

Similar Items

Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data


Primary Entity

<http://www.worldcat.org/oclc/52359438> # Java persistence for relational databases
    a schema:CreativeWork, schema:Book ;
   library:oclcnum "52359438" ;
   library:placeOfPublication <http://experiment.worldcat.org/entity/work/data/9420117#Place/berkeley_calif> ; # Berkeley, Calif.
   library:placeOfPublication <http://id.loc.gov/vocabulary/countries/cau> ;
   schema:about <http://dewey.info/class/005.756/e21/> ;
   schema:about <http://id.worldcat.org/fast/982065> ; # Java (Computer program language)
   schema:about <http://id.worldcat.org/fast/1093575> ; # Relational databases
   schema:bookFormat bgn:PrintBook ;
   schema:copyrightYear "2003" ;
   schema:creator <http://viaf.org/viaf/16923348> ; # Richard Sperko
   schema:datePublished "2003" ;
   schema:exampleOfWork <http://worldcat.org/entity/work/id/9420117> ;
   schema:inLanguage "en" ;
   schema:isSimilarTo <http://www.worldcat.org/oclc/607831902> ;
   schema:isSimilarTo <http://www.worldcat.org/oclc/606996577> ;
   schema:name "Java persistence for relational databases"@en ;
   schema:productID "52359438" ;
   schema:publication <http://www.worldcat.org/title/-/oclc/52359438#PublicationEvent/berkeley_calif_apress_2003> ;
   schema:publisher <http://experiment.worldcat.org/entity/work/data/9420117#Agent/apress> ; # Apress
   schema:workExample <http://worldcat.org/isbn/9781590590713> ;
   umbel:isLike <http://bnb.data.bl.uk/id/resource/GBA3W8487> ;
   wdrs:describedby <http://www.worldcat.org/title/-/oclc/52359438> ;
    .


Related Entities

<http://experiment.worldcat.org/entity/work/data/9420117#Place/berkeley_calif> # Berkeley, Calif.
    a schema:Place ;
   schema:name "Berkeley, Calif." ;
    .

<http://id.worldcat.org/fast/1093575> # Relational databases
    a schema:Intangible ;
   schema:name "Relational databases"@en ;
    .

<http://id.worldcat.org/fast/982065> # Java (Computer program language)
    a schema:Intangible ;
   schema:name "Java (Computer program language)"@en ;
    .

<http://viaf.org/viaf/16923348> # Richard Sperko
    a schema:Person ;
   schema:familyName "Sperko" ;
   schema:givenName "Richard" ;
   schema:name "Richard Sperko" ;
    .

<http://worldcat.org/isbn/9781590590713>
    a schema:ProductModel ;
   schema:isbn "1590590716" ;
   schema:isbn "9781590590713" ;
    .

<http://www.worldcat.org/oclc/606996577>
    a schema:CreativeWork ;
   rdfs:label "Java persistence for relational databases." ;
   schema:description "Online version:" ;
   schema:isSimilarTo <http://www.worldcat.org/oclc/52359438> ; # Java persistence for relational databases
    .

<http://www.worldcat.org/oclc/607831902>
    a schema:CreativeWork ;
   rdfs:label "Java persistence for relational databases." ;
   schema:description "Online version:" ;
   schema:isSimilarTo <http://www.worldcat.org/oclc/52359438> ; # Java persistence for relational databases
    .


Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.