Oracle Enterprise Pack for Eclipse, Which Is a Set of Plugins for Eclipse, to Support Java EE Development
Total Page:16
File Type:pdf, Size:1020Kb
Oracle[1] Enterprise Pack for Eclipse User’s Guide 12c (12.2.1.3) E71327-01 June 2016 Documentation that describes how to use Oracle Enterprise Pack for Eclipse, which is a set of plugins for Eclipse, to support Java EE development. It allows you to create, configure and deploy Oracle Mobile Application Framework applications for iOS and Android. You can create, configure, and run Oracle ADF applications on Glassfish and Oracle WebLogic Server. Oracle Enterprise Pack for Eclipse User's Guide, 12c (12.2.1.3) E71327-01 Copyright © 2008, 2016 Oracle and/or its affiliates. All rights reserved. Primary Author: Catherine Pickersgill This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle. Contents Preface ............................................................................................................................................................... xiii Audience..................................................................................................................................................... xiii Documentation Accessibility................................................................................................................... xiii Related Documents ................................................................................................................................... xiii Conventions ............................................................................................................................................... xiii 1 Oracle Enterprise Pack for Eclipse User's Guide 1.1 Oracle Application Development Framework Support........................................................ 1-1 1.2 Oracle Mobile Application Framework Support ................................................................... 1-2 1.3 Oracle WebLogic Server Support ............................................................................................. 1-2 1.4 Integrating Oracle Cloud Services............................................................................................ 1-2 1.5 Maven Support............................................................................................................................ 1-2 1.6 Web Services Support................................................................................................................. 1-3 1.7 REST Web Services Support...................................................................................................... 1-3 1.8 Oracle Database Support ........................................................................................................... 1-3 1.9 Object-Relational Mappings Support....................................................................................... 1-3 1.10 Coherence Support ..................................................................................................................... 1-3 1.11 Web Application Development Support................................................................................. 1-4 2 Oracle ADF Tools Support 2.1 Getting Started with Oracle ADF ............................................................................................. 2-1 2.1.1 Understanding the Oracle ADF Architecture.................................................................. 2-2 2.1.2 Configuring Oracle WebLogic Server............................................................................... 2-2 2.1.3 Creating an Oracle ADF Application................................................................................ 2-4 2.2 Working with the Oracle ADF Model Layer .......................................................................... 2-5 2.2.1 Creating the JPA Model Project......................................................................................... 2-5 2.2.2 Creating JPA Entities from Tables..................................................................................... 2-6 2.2.3 Working with Session Beans.............................................................................................. 2-6 2.2.3.1 Generating a Session Bean on Selected JPA Entities ............................................... 2-6 2.2.3.2 Generating a JSF Managed Bean ................................................................................ 2-7 2.2.3.3 Generating a Session Bean and a JSF Managed Bean using the Data Components Model Wizard 2-7 2.2.3.4 Editing a Session Bean ................................................................................................. 2-7 2.2.4 Working with ADF Model Data Binding......................................................................... 2-8 2.2.4.1 Creating ADF Data Controls....................................................................................... 2-9 iii 2.2.4.2 Using the ADF Data Control Manager................................................................... 2-11 2.2.4.3 Using the Data Palette to Create UI Components ............................................... 2-14 2.2.4.4 Using the Bindings Tab in the Properties Window.............................................. 2-15 2.2.4.5 Working with Page Definition Files........................................................................ 2-16 2.2.4.6 Opening a Page Definition File in the Page Definition Editor............................ 2-16 2.2.4.7 Understanding the Page Definition Editor............................................................ 2-17 2.2.4.8 Understanding Bindings and Executables............................................................. 2-18 2.2.4.9 Adding Bindings and Executables.......................................................................... 2-20 2.2.4.10 Working with Tree Bindings.................................................................................... 2-20 2.2.5 Adding Data Binding to Existing UI Components...................................................... 2-22 2.2.6 Debugging ADF Bindings ............................................................................................... 2-24 2.2.6.1 ADF Page Definition Artifact Validation............................................................... 2-24 2.2.7 Refactoring ADF Bindings............................................................................................... 2-25 2.3 Working with Oracle ADF Controller .................................................................................