站内搜索: 请输入搜索关键词
当前页面: 图书首页 > How to be a Successful Technical Architect for J2EE Applications

List of Listings - How to be a Successful Technical Architect for J2EE Applications

Team LiB
Previous Section

List of Listings

Chapter 7: Creating the Data Model

Listing 7.1: ProjectTrak DDL for Figure 7.6
Listing 7.2: XML Documnt Example

Chapter 8: Network Architecture

Listing 8.1: A Traceroute to http://www.javasoft.com/

Chapter 10: Building Value Objects

Listing 10.1: Sample Value Object Code
Listing 10.2a: Exception Processing Without Describable
Listing 10.2b: Exception Processing with Describable
Listing 10.3: Describable Interface Definition
Listing 10.4a: Sample Object.equals() Implementation
Listing 10.4b: Output from Listing 10.4a
Listing 10.5: Sample hashcode() Implementation
Listing 10.6: Sample equals() Implementation
Listing 10.7: Sample compareTo() Implementation
Listing 10.8: Sample Value Object Extending org.cementj.base.ValueObject
Listing 10.9: Sample XML Document Description of a ValueObject
Listing 10.10: Sample ProjectVO Class from ProjectTrak

Chapter 11: Building XML Access Objects

Listing 11.1: Sample XAO Method to Read an XML Document
Listing 11.2: Sample XAO Method to Create XML Text
Listing 11.3: Sample XAO Method to Create HTML Text
Listing 11.4: Using JAXB to Read an XML Document
Listing 11.5: Using CementJ JAXBUtility to Read an XML Document
Listing 11.6: Using JAXB to Write an XML Document to Disk
Listing 11.7: Using CementJ to Produce an XML Document with JAXB Classes
Listing 11.8: Sample XSL Style Sheet
Listing 11.9: Initiating an XSL Transformation

Chapter 12: Building Database Access Objects

Listing 12.1: Sample Data Access Object Code
Listing 12.2: Using Entity Beans for Data Access Objects
Listing 12.3: Sample Hibernate Configuration
Listing 12.4: Sample Hibernate Value Object Mapping
Listing 12.5: Sample Hibernate Session and Transaction Management
Listing 12.6: Sample Hibernate Insert
Listing 12.7: Embedding Literals in SQL Statements (Bad Practice)
Listing 12.8: Using a Host Variable in a SQL Statement (Listing 12.7 Rewritten)
Listing 12.9: Using a Finally Block to Close JDBC Resources
Listing 12.10a: Using a String Host Variable for a Date Field
Listing 12.10b: Query with java.sql.Timestamp as a Host Variable
Listing 12.11a: Select Statement with *
Listing 12.11b: Full Select Statement with Column List
Listing 12.12a: Insert Statement Without Column List
Listing 12.12b: Full Insert Statement with Column List

Chapter 13: Building Business Objects

Listing 13.1: Defining TransactionContext
Listing 13.2: Using TransactionContext to Decouple Transaction Management

Chapter 14: Building Deployment Layer Objects

Listing 14.1: Sample Session Bean Deployment
Listing 14.2: Sample Session Bean Client
Listing 14.3: Using an MDB to Process Purchase Orders
Listing 14.4: Sample Apache SOAP Web Service Client

Chapter 15: Building the Presentation Layer

Listing 15.1: JSP to Produce the Page in Figure 15.1
Listing 15.2: Sample Form Containing Validation Rules
Listing 15.3: Using ShowErrors.jsp to Validate User Input
Listing 15.4: Using ProduceTaskListAction to Process Data
Listing 15.5: Using struts-config.xml for Navigation

Chapter 16: Building Architectural Components

Listing 16.1: Sample JAXB Parse
Listing 16.2: Sample JAXB Parse Using CementJ
Listing 16.3: Sample Properties File
Listing 16.4: Sample Component Delegate

Chapter 17: Application Architecture Strategies

Listing 17.1: Sample Log Manager Using Log4J
Listing 17.2: Example of Argument Checking
Listing 17.3: Example of Catching Throwable
Listing 17.4: Example of Poor Exception-Catching Code
Listing 17.5: Improved Exception-Handling Code (Listing 17.4 Rewritten)
Listing 17.6a: Exception Processing Without a Describable Implementation
Listing 17.6b: Using describe() to Streamline Error Processing
Listing 17.7: Declaring Threads as Daemons
Listing 17.8: Naming a Thread
Listing 17.9: Implementing an Environment Class
Listing 17.10: Implementing the ApplicationEnvironment Class

Chapter 18: Functional Testing Guidelines

Listing 18.1: Sample Test Case for a Data Access Object
Listing 18.2: Sample Test Suite from ThreadWorks

Chapter 19: Performance Tuning and Load Testing

Listing 19.1: Sample Top Utility Output
Listing 19.2: Sample CPU Stack Trace Rankings
Listing 19.3: Stack Trace Details
Listing 19.4: Extract from CementJ
Listing 19.5: Sample Memory Trace Ranking
Listing 19.6: Trace 419 from the Sample in Listing 19.5
Listing 19.7: Code Highlighted in the Trace
Listing 19.8: Trace 1 from the Sample in Listing 19.5

Chapter 20: Postimplementation Activities

Listing 20.1: Sample Candidate for the Extract-and-Delegate Method of Refactoring
Listing 20.2: Using the Extract-and-Delegate Technique (Refactoring of Listing 20.1)
Listing 20.3: DatabaseUtility Source Extract

Team LiB
Previous Section