EJB 3 developer guide a practical guide for developers and architects to the Enterprise Java Beans standard
A Practical Book and eBook Guide for developers and architects using the EJB Standard.
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, U.K. :
Packt
2008.
|
Edición: | 1st edition |
Colección: | From technologies to solutions
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628145906719 |
Tabla de Contenidos:
- Cover; Table of Contents; Preface; Chapter 1: Introduction to the EJB 3 Architecture; Introduction to the Java EE Architecture; The EJB 3 Architecture; EJB Container Services; The JPA Persistence Engine; EJB 3 Compared with Earlier Versions; Getting Started; Installing GlassFish; Testing the Installation; Accessing the Administrator Console; Shutting Down GlassFish; Downloading Example Source Code; Summary; Chapter 2: Session Beans; Introduction; Stateless Session Beans; Annotations; Creating a Session Bean Client; Running the Example; The Program Directory Structure; The Ant Build Script
- The Application Client ContainerBuilding the Application; Stateless Session Bean's LifeCycle; Stateful Session Beans; Stateful Session Bean's LifeCycle; Local Interfaces; Summary; Chapter 3: Entities; Introduction; EJB 3 Entities; Comparison with EJB 2.x Entity Beans; Mapping an Entity to a Database Table; Introducing the EntityManager; Packaging and Deploying Entities; The Program Directory Structure; Building the Application; Field-Based Annotations; Generating Primary Keys; Table Strategy; Sequence Strategy; Identity Strategy; Auto Strategy; Overriding Metadata Defaults; Summary
- Chapter 4: Object/Relational MappingO/R Mapping Default Behavior; A Banking Example Application; Customer Entity; Account Entity; Address Entity; Referee Entity; Testing the Application; O/R Mapping Overriding Defaults; Customer Entity; Account Entity; Address Entity; BankServiceBean; O/R Mapping Additional Annotations; Referee Class; BankServiceBean; Composite Primary Keys; O/R Inheritance Mapping; SINGLE_TABLE Strategy; JOINED Strategy; Table per Concrete Class Strategy; Summary; Chapter 5: The Java Persistence Query Language; Introduction; Simple Queries; Projection
- Conditional ExpressionsAggregate Functions; GROUP BY; HAVING; Queries with Relationships; Joins; Inner Joins; Outer Joins; Fetch Joins; Collection Comparison Expressions; Constructor Expressions; SubQueries; Functions; CONCAT; SUBSTRING; TRIM; LOWER and UPPER; LENGTH; LOCATE; ABS; SQRT; MOD; SIZE; Queries with Parameters; Positional Parameters; Named Parameters; Named Queries; Handling Date and Time; @Temporal annotation; Queries with Date Parameters; Datetime Functions; Bulk Update and Delete; Native SQL; Summary; Chapter 6: Entity Manager; Application-managed Entity Manager
- Entity Manager MergeEntity Manager Methods; remove(); contains(); flush(); setFlushMode(); refresh(); clear(); Cascade Operations; persist; remove; merge; refresh; all; Extended Persistence Context; Entity LifeCycle Callback Methods; Entity Listeners; Summary; Chapter 7: Transactions; Introduction; Container-Managed Transaction Demarcation; SUPPORTS; NOT_SUPPORTED; REQUIRED; REQUIRES_NEW; MANDATORY; Never; Examples of Transaction Attributes; REQUIRED Example; REQUIRES_NEW Example; NOT_SUPPORTED Example; SUPPORTS Example; MANDATORY Example; NEVER Example
- Controlling Container Managed Transactions