Oracle Utilities Application Framework Software .

Transcription

Oracle UtilitiesApplication Framework SoftwareDevelopment KitDeveloper's GuideRelease 4.2.0E39199-01February 2013

Oracle Utilities Application Framework Software Development Kit Developer's GuideRelease 4.2.0E39199-01February 2013Copyright 2013, Oracle and/or its affiliates. All rights reserved.This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protectedby 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. Reverseengineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, thefollowing notice is applicable:U.S. GOVERNMENT RIGHTSPrograms, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computersoftware" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations.As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in theapplicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR52.227-19, Commercial Computer Software License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065.This software or hardware is developed for general use in a variety of information management applications. It is not developed or intendedfor use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software orhardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy and other measures toensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware indangerous applications.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.This software or hardware and documentation may provide access to or information on content, products and services from third parties. OracleCorporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third party content, productsand services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use ofthird party content, products or services.

ContentsOracle Utilities Software Development Kit. 13User Guide.14Overview. 14Development Environment. 14Overview. 15The App Server is the Development Environment. 15Development App Server is Local, Not Shared.15Repository for Project.15Components of the Software Development Kit. 15Project Development Database.17Project Repository.17Development Workstation. 17Directory Structure. 17The App Server Directory. 17Standard App Server Directory Structure. 17Additional Directories for Development. 19Pertinent Directories in the App Server. 20Client Directory. 20Synchronizing with the Project Repository.22Versions.22Version Number.22Compatibility with Products.22Updates.22Moving up to a New Update.23Stabilize the Project.23Install the Update.23Moving up to a New Version of a Product.23Stabilize the Project on the Old Version of the Product. 24Prepare the Database for the New Project. 24Set up the Repository for the New Project. 24Set up Development Workstations. 24Product Single Fixes.24Build Server. 24What is a Build Server?. 25The 'Build Master'. 26Components of the Build Server.26Version Control System Requirements. 26CruiseControl. 26Maven.26Oracle Utilities Software Development Kit. 27Version Control System Setup. 27Client Spec Setup. 27Setting up CruiseControl. 27The config.xml file. 27The Reporting Application. 27Setting up Maven.28The Launch Script. 28The project.xml file. 28The maven.xml file.283

The project.properties file.28Working Example. 28Application Server Refresh. 41Application Server Refresh Scripts. 41setupEnv2xx.cmd. 41setAppserverEnv.bat. 42AppServerRefresh.bat. 42build.xml. 43Application Server Refresh Procedure. 45JUnit testing. 46Standard test cases.46Testing Searches. 46Testing Maintenance Classes.48Testing Add on Maintenance Class.48Testing Change on Maintenance Class. 49Testing Delete on Maintenance Class. 49Test default actions on Maintenance Class. 49Testing Entity Page Maintenance Classes.50Testing Add on Entity Page Maintenance Class. 50Testing Change on Entity Page Maintenance Class.51The Comparisons. 51Test default actions on Entity Page Maintenance Class.51Testing Business Entity Validation. 52Test handleChange / handleAdd / etc code.55Testing for Warnings.56Maintenances.56Entity tests.57Technical Background. 57Logical Architecture. 58Key Advantages. 59Portability. 59Distribution.59SPL Services. 59SPL Service XML Metainfo Files. 59Example using Page Service. 59Example Using Search Service. 62Server Architecture Overview. 63Client Architecture Overview.63Introduction. 63Client Architecture Discussion. 63SPL Client API. 65Overview. 65Client API Discussion.

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 .