Java Database Best Practices. Persistence Models and Techniques for Java Database Programming - Helion
ISBN: 978-14-493-6562-2
stron: 288, Format: ebook
Data wydania: 2003-05-14
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 137,38 zł)
Oszczędzasz: 14% (-19,23 zł)
When creating complex Java enterprise applications, do you spend a lot of time thumbing through a myriad of books and other resources searching for what you hope will be the API that's right for the project at hand?Java Database Best Practices rescues you from having to wade through books on each of the various APIs before figuring out which method to use! This comprehensive guide introduces each of the dominant APIs (Enterprise JavaBeans, Java Data Objects, the Java Database Connectivity API (JDBC) as well as other, lesser-known options), explores the methodology and design components that use those APIs, and then offers practices most appropriate for different types and makes of databases, as well as different types of applications.Java Database Practices also examines database design, from table and database architecture to normalization, and offers a number of best practices for handling these tasks as well. Learn how to move through the various forms of normalization, understand when to denormalize, and even get detailed instructions on optimizing your SQL queries to make the best use of your database structure. Through it all, this book focuses on practical application of these techniques, giving you information that can immediately be applied to your own enterprise projects.Enterprise applications in today's world are about data-- whether it be information about a product to buy, a user's credit card information, or the color that a customer prefers for their auto purchases. And just as data has grown in importance, the task of accessing that data has grown in complexity. Until now, you have been left on your own to determine which model best suits your application, and how best to use your chosen API. Java Database Practices is the one stop reference book to help you determine what's appropriate for your specific project at hand. Whether it's choosing between an alphabet soup of APIs and technologies--EJB, JDO, JDBC, SQL, RDBMS, OODBMS, and more on the horizon, this book is an indispensable resource you can't do without.
Osoby które kupowały "Java Database Best Practices. Persistence Models and Techniques for Java Database Programming", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Mapa Agile & Scrum. Jak si 57,69 zł, (15,00 zł -74%)
- Sztuka podst 53,46 zł, (13,90 zł -74%)
- Lean dla bystrzaków. Wydanie II 49,62 zł, (12,90 zł -74%)
Spis treści
Java Database Best Practices. Persistence Models and Techniques for Java Database Programming eBook -- spis treści
- Java Database Best Practices
- Dedication
- A Note Regarding Supplemental Files
- Preface
- Audience
- Organization of This Book
- Part I
- Part II
- Part III
- Conventions Used in This Book
- Comments and Questions
- About the Philosophers
- Acknowledgments
- I. Data Architecture
- 1. Elements of Database Applications
- Database Application Architectures
- The Network Architecture
- Network segmentation
- Bandwidth
- Hardware
- Various System Architectures
- The client/server architecture
- The simple web site architecture
- Peer-to-peer
- Distributed architectures
- Software Architecture
- User interface patterns
- The model-view-controller pattern.
- The listener pattern.
- Business patterns
- The composite pattern.
- The factory pattern.
- Persistence patterns
- The data access object pattern.
- The memento pattern.
- User interface patterns
- The Network Architecture
- Component Models
- JavaBeans
- Enterprise JavaBeans
- Persistence Models
- EJB Persistence
- Other Persistence Models
- Database Application Architectures
- 2. Relational Data Architecture
- Relational Concepts
- The Relational Model
- Entities
- Constraints
- Indexes
- Domains
- Relationships
- One-to-one relationships
- One-to-many relationships
- Many-to-many relationships
- NULL
- Modeling
- Normalization
- Before Normalization
- Basic Normalization
- First normal form
- Second normal form
- Third normal form
- Specialized Normalization
- Boyce-Codd normal form
- Fourth normal form
- Fifth normal form
- Denormalization
- Object-Relational Mapping
- Inheritance Mapping
- Multivalued Attributes
- Relational Concepts
- 3. Transaction Management
- Transactions
- ACID Requirements
- Transaction Design
- Concurrency
- Isolation Levels
- Locking
- JDBC Transaction Management
- Basic Transaction Management
- Optimistic Concurrency
- Batch Transactions
- Savepoints
- Transaction Management Paradigms
- Transactions
- 1. Elements of Database Applications
- II. Persistence Models
- 4. Persistence Fundamentals
- Patterns of Persistence
- Division of Labor
- Sequence Generation
- Mementos
- Object Caching
- A Guest Book Application
- The View
- The Controller
- The Business Object (Model)
- The Data Access Objects
- Loading comments
- Sequence generation
- Patterns of Persistence
- 5. EJB CMP
- Which CMP Model to Use?
- The EJB 1.0 CMP Model
- Field Mapping
- Persistence Methods
- Searches
- Transactions
- The EJB 2.0 CMP Model
- Container-Managed Relationships
- CMR basics
- CMR magic
- EJB QL
- Finders
- Selectors
- Container-Managed Relationships
- Beyond CMP
- 6. EJB BMP
- EJBs Revisited
- The Components of a Bean
- Kinds of Beans
- Entity beans
- Session beans
- Message-driven beans
- BMP Patterns
- Data Access Objects
- Value Objects
- Simple value objects
- Complex value objects
- Other alternatives
- Sessions as Transactions
- Searches
- Updates
- State Management
- Lazy-Loading
- To Store or Not to Store
- Exception Handling
- EJBs Revisited
- 7. JDO Persistence
- JDO or EJB?
- Basic JDO Persistence
- Transaction Management
- Query Control
- EJB BMP with JDO
- Transaction Management
- Persistence Strategies
- 8. Alternative Persistence Frameworks
- Why Alternative Frameworks?
- Persistence Approach
- Castor Field Mapping
- Hibernate Field Mapping
- Persistence Operations
- Castor Persistence
- Hibernate Persistence
- Searches
- Castor Searches
- Hibernate Searches
- Beyond the Basics
- 4. Persistence Fundamentals
- III. Tutorials
- 9. J2EE Basics
- The Platform
- Java Naming and Directory Interface
- Naming and Directory Services
- JNDI Architecture
- The Basics of JNDI Programming
- InitialContext
- Lookups
- References
- Attribute manipulation
- Searching the directory
- Access to Enterprise Components via JNDI
- JNDI and JDBC
- JNDI and EJB
- JNDI and other enterprise components
- JavaServer Pages
- Page Structure
- JSP Programming
- Custom Tags
- Remote Method Invocation
- The Structure of RMI
- Remote object access
- Remote interfaces
- Stubs and skeletons
- Remote exceptions
- Object Serialization
- The Structure of RMI
- Enterprise JavaBeans
- EJB Roles
- Kinds of Beans
- 10. SQL
- Background
- The SQL Story
- Database Interaction
- Basic Syntax
- Database Creation
- Table Management
- The Basics of Table Creation
- Data Types
- Numeric types
- Character types
- Other types
- Indexing
- Data Management
- Inserts
- Primary Keys
- Updates
- The WHERE Clause
- Deletes
- Queries
- Basic queries
- Aliasing
- Ordering
- Grouping
- Operators
- Logical operators
- Comparisons with NULL
- Membership tests
- Functions
- Joins
- Background
- 11. JDBC
- Architecture
- The Core Interfaces
- Databases and Drivers
- Simple Database Access
- The Connection
- DataSource connectivity
- DriverManager connectivity
- Portability through properties
- Query Execution
- Simple queries
- Scrollable result sets
- Transactions
- Basic transaction management
- Savepoints
- Error Handling and Cleanup
- Prepared SQL
- Prepared statements
- Stored procedures
- The Connection
- Advanced JDBC
- Batch Processing
- Metadata
- Hidden Features
- Connection pooling
- Prepared statement pooling
- Distributed transactions
- Architecture
- 12. JDO
- Architecture
- Business Objects
- Applications
- Implementations
- Data Stores
- Enhancement
- Class Metadata
- Running the Enhancer
- The Database
- Queries
- The JDO Extent
- The JDO Query
- Complex Queries
- The Filter Language
- Changes
- Transactions
- The Transaction Class
- Managed Versus Nonmanaged Environments
- Inheritance
- Architecture
- 9. J2EE Basics
- Index
- About the Author
- Colophon
- Copyright