售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Oracle JDeveloper 11gR2 Cookbook
Table of Contents
Oracle JDeveloper 11gR2 Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Prerequisites to Success: ADF Project Setup and Foundations
Introduction
Installation of JDeveloper on Linux
Getting ready
How to do it...
How it works...
There's more...
Configuring JDeveloper with a 64-bit JDK
Configuring the JDeveloper user directory
Breaking up the application in multiple workspaces
How to do it…
How it works…
There's more…
Adding the ADF Library JAR manually
Defining the application module granularity
Entity objects, list of values (LOVs), validation queries
Setting up BC base classes
Getting ready
How to do it…
How it works…
There's more…
See also
Setting up logging
Getting ready
How to do it…
How it works…
There's more…
See also
Using a custom exception class
Getting ready
How to do it…
How it works…
There's more…
Bundled Exceptions
See also
Using ADFUtils/JSFUtils
Getting ready
How to do it…
How it works…
Locating an iterator binding
Locating an operation binding
Locating an attribute binding
Getting and setting an attribute binding value
Getting the binding container
Adding Faces messages
Finding a component in the root view
Getting and setting managed bean values
Using page templates
Getting ready
How to do it…
How it works…
There's more…
Using a generic backing bean actions framework
Getting ready
How to do it…
How it works…
There's more…
See also
2. Dealing with Basics: Entity Objects
Introduction
Using a custom property to populate a sequence attribute
Getting ready
How to do it...
How it works...
There's more...
See also
Overriding doDML() to populate an attribute with a gapless sequence
Getting ready
How to do it...
How it works...
There's more...
See also
Creating and applying property sets
getting ready
How to do it...
How it works...
There's more...
See also
Using getPostedAttribute() to determine the posted attribute's value
Getting ready
How to do it...
How it works...
See also
Overriding remove() to delete associated children entities
Getting ready
How to do it...
How it works...
There's more...
Overriding remove() to delete a parent entity in an association
Getting ready
How to do it...
How it works...
There's more...
See also
Using a method validator based on a view object accessor
Getting ready
How to do it…
How it works...
There's more...
See also
Using Groovy expressions to resolve validation error message tokens
Getting ready
How to do it...
How it works...
See also
Using doDML() to enforce a detail record for a new master record
Getting ready
How to do it...
How it works...
See also
3. A Different Point of View: View Object Techniques
Introduction
Iterating a view object using a secondary rowset iterator
Getting ready
How to do it...
How it works...
There's more...
Pitfalls when iterating over large rowsets
See also
Setting default values for view row attributes
Getting ready
How to do it...
How it works...
There's more...
Specifying default values at the entity object level
See also
Controlling the updatability of view object attributes programmatically
Getting ready
How to do it...
How it works...
There's more...
Controlling attribute updatability at the entity object level
See also
Setting the Queryable property of a view object attribute programmatically
Getting ready
How to do it...
How it works...
There's more...
See also
Using a transient attribute to indicate a new view object row
Getting ready
How to do it...
How it works...
There's more...
See also
Conditionally inserting new rows at the end of the rowset
Getting ready
How to do it...
How it works...
There's more...
Inserting new rows at the beginning of the rowset
See also
Using findAndSetCurrentRowByKey() to set the view object currency
Getting ready
How to do it...
How it works...
There's more...
Range paging optimization
See also
Restoring the current row after a transaction rollback
Getting ready
How to do it…
How it works...
There's more...
See also
Dynamically changing the WHERE clause of the view object query
Getting ready
How to do it...
How it works...
There's more...
See also
Removing a row from a rowset without deleting it from the database
Getting ready
How to do it...
How it works...
There's more...
See also
4. Important Contributors: List of Values, Bind Variables, View Criteria
Introduction
Setting up multiple LOVs using a switcher attribute
Getting ready
How to do it...
How it works...
There's more...
See also
Setting up cascading LOVs
Getting ready
How to do it...
How it works...
There's more...
See also
Creating static LOVs
Getting ready
How to do it...
How it works...
There's more...
See also
Overriding bindParametersForCollection() to set a view object bind variable
Getting ready
How to do it...
How it works...
There's more...
See also
Creating view criteria programmatically
Getting ready
How to do it...
How it works...
There's more...
See also
Clearing the values of bind variables associated with the view criteria
Getting ready
How to do it...
How it works...
There's more...
See also
Searching case insensitively using view criteria
Getting ready
How to do it...
How it works...
There's more...
See also
5. Putting them all together: Application Modules
Introduction
Creating and using generic extension interfaces
Getting ready
How to do it…
How it works…
There's more…
See also
Exposing a custom method as a web service
Getting ready
How to do it…
How it works…
There's more…
See also
Accessing a service interface method from another application module
Getting ready
How to do it…
How it works…
There's more…
See also
A passivation/activation framework for custom session-specific data
Getting ready
How to do it…
How it works…
There's more…
See also
Displaying application module pool statistics
Getting ready
How to do it…
How it works…
There's more…
See also
Using a shared application module for static lookup data
Getting ready
How to do it…
How it works...
There's more...
See also
Using a custom database transaction
Getting ready
How to do it...
How it works...
There's more...
See also
6. Go with the Flow: Task Flows
Introduction
Using an application module function to initialize a page
Getting ready
How to do it…
How it works…
There's more…
See also
Using a task flow initializer to initialize a task flow
Getting ready
How to do it…
How it works…
There's more…
See also
Calling a task flow as a URL programmatically
Getting ready
How to do it…
How it works…
There's more…
See also
Retrieving the task flow definition programmatically using MetadataService
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a train
Getting ready
How to do it…
How it works…
There's more…
See also
7. Face Value: ADF Faces, JSF Pages, and User Interface Components
Introduction
Using an af:query component to construct a search page
Getting ready
How to do it…
How it works…
There's more…
See also
Using an af:pop-up component to edit a table row
Getting ready
How to do it…
How it works…
There's more…
See also
Using an af:tree component
Getting ready
How to do it…
How it works…
There's more…
See also
Using an af:selectManyShuttle component
Getting ready
How to do it…
How it works…
There's more…
See also
Using an af:carousel component
Getting ready
How to do it…
How it works…
There's more…
See also
Using an af:poll component to periodically refresh a table
Getting ready
How to do it…
How it works…
See also
Using page templates for pop-up reuse
Getting ready
How to do it…
How it works…
There's more…
See also
Exporting data to a client file
Getting ready
How to do it…
How it works…
There's more…
See also
8. Backing not Baking: Bean Recipes
Introduction
Determining whether the current transaction has pending changes
Getting ready
How to do it…
How it works…
There's more…
See also
Using a custom af:table selection listener
Getting ready
How to do it…
How it works…
There's more…
See also
Using a custom af:query listener to allow execution of a custom application module operation
Getting ready
How to do it…
How it works…
There's more…
See also
Using a custom af:query operation listener to clear both the query criteria and results
Getting ready
How to do it…
How it works…
There's more…
See also
Using a session scope bean to preserve session-wide information
Getting ready
How to do it…
How it works…
See also
Using an af:popup during long running tasks
Getting ready
How to do it…
How it works…
See also
Using an af:popup to handle pending changes
Getting ready
How to do it…
How it works…
See also
Using an af:iterator to add pagination support to a collection
Getting ready
How to do it…
How it works…
See also
9. Handling Security, Session Timeouts, Exceptions, and Errors
Introduction
Enabling ADF security
Getting ready
How to do it…
How it works…
There's more…
See also
Using a custom login page
Getting ready
How to do it…
How it works…
There's more…
See also
Accessing the application's security information
Getting ready
How to do it…
How it works…
There's more…
See also
Using OPSS to retrieve the authenticated user's profile from the identity store
Getting ready
How to do it…
How it works…
There's more…
See also
Detecting and handling session timeouts
Getting ready
How to do it…
How it works…
There's more…
See also
Using a custom error handler to customize how exceptions are reported to the ViewController
Getting ready
How to do it…
How it works…
There's more…
See also
Customizing the error message details
Getting ready
How to do it…
How it works…
See also
Overriding attribute validation exceptions
Getting ready
How to do it…
How it works…
There's more…
See also
10. Deploying ADF Applications
Introduction
Configuring and using the Standalone WebLogic Server
Getting ready
How to do it…
How it works…
There's more…
See also
Deploying on the Standalone WebLogic Server
Getting ready
How to do it…
How it works…
There's more…
See also
Using ojdeploy to automate the build process
Getting ready
How to do it…
How it works…
There's more…
See also
Using Hudson as a continuous integration framework
Getting ready
How to do it…
How it works…
There's more…
See also
11. Refactoring, Debugging, Profiling, and Testing
Introduction
Synchronizing business components with database changes
Getting ready
How to do it…
How it works…
There's more…
Refactoring ADF components
Getting ready
How to do it…
How it works…
There's more…
See also
Configuring and using remote debugging
Getting ready
How to do it…
How it works…
There's more…
See also
Logging Groovy expressions
Getting ready
How to do it…
How it works…
See also
Dynamically configuring logging in WebLogic Server
Getting ready
How to do it…
How it works…
There's more…
See also
Performing log analysis
Getting ready
How to do it…
How it works…
See also
Using CPU profiler for an application running on a standalone WebLogic server
Getting ready
How to do it…
How it works…
There's more…
See also
Configuring and using JUnit for unit testing
Getting ready
How to do it…
How it works…
There's more…
See also
12. Optimizing, Fine-tuning, and Monitoring
Introduction
Using Update Batching for entity objects
Getting ready
How to do it…
How it works…
There's more…
See also
Limiting the rows fetched by a view object
Getting ready
How to do it…
How it works…
There's more…
See also
Limiting large view object query result sets
Getting ready
How to do it…
How it works…
There's more…
See also
Limiting large view object query result sets by using required view criteria
Getting ready
How to do it…
How it works…
There's more…
See also
Using a work manager for processing of long running tasks
Getting ready
How to do it…
How it works…
There's more…
See also
Monitoring the application using JRockit Mission Control
Getting ready
How to do it…
How it works…
There's more…
See also
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜