|
Comments
|
Today's Top SOA Links
PowerDesigner Design and Develop Data-Centric Mobile Applications with PowerDesigner
Taking a higher-level view of an application's data management functionality
Jul. 4, 2007 05:00 PM
What do your applications do? They bring data flows in, send them out, store them somewhere or display them in various forms, and so on. There are many issues around data. Have you also found that a large part of your application's code manages or is driven by data? Aggregate, transform, classify, and compute... All of these actions suggest you adopt a more data-centric approach to software design and development.
We'll go through the smooth-shifting steps of data modeling, O/R Mapping modeling, code generation, deployment, and running. In the end, you'll see the application running in a mobile device.
What Is Data-Centric Development?
How to Do It OOM is also needed to blaze a way from the data model to the code.
To link the data model (PDM) and OOM, O/R Mapping frameworks come into play to map the PDM to the OOM. We have three ways to define this mapping, which can also be thought of as general approaches to data-centric development. Here we'll focus mainly on the bottom-up approach. In this approach, models are transformed from PDM to OOM. It's significant for data-centric applications. Except for inheritance, PowerDesigner can transform PDM elements to OOM elements. Since PDM doesn't have the concept of subclasses, you can't generate inheritance links from reference keys and tables. However, you can customize the generated OOM to meet your needs. After this these models and mappings have to be converted to source code and libraries. As we do so, we draw closer and closer to the final application. The last thing to do is get the required service libraries to deploy and run the application.
PowerDesigner's Contribution
Data Modeling Another attractive feature of PowerDesigner is its powerful reverse-engineering capabilities to document and update existing systems. Reverse engineering is the process of generating a PDM (or certain PDM objects) from an existing database schema. You can reverse-engineer an existing database schema into a new PDM or into an existing PDM.
Model Transformation Model comparison and merge functionality can be used to assist iterative model transformation. In the Compare window, you can see the objects contained in the models or resource files in a tree format and highlight differences between them. In the Merge window, you can do merge actions to retain or overlap the original objects.
O/R Mapping Modeling Table 1 lists object mappings in OOM and PDM model type. As we said, O/R Mappings can be defined in three ways: top-down, bottom-up, and meet-in-the-middle. For O/R mapping framework support, PowerDesigner already provides support for several mainstream O/R Mapping frameworks, including Hibernate and EJB 3 for Java, NHibernate and ADO.NET for the .NET Framework, and ADO.NET Compact Framework for the .NET Compact Framework. They present a form of extended model definitions. These definitions supply settings and code generation for models and O/R Mapping implementation. You can easily make use of them in your development. Figure 1 is the preview window of a generated mapping file for Hibernate support. The only thing you have to do is to define a proper O/R Mapping and setting. There are also unit-testing extensions available for these O/R Mapping extended model definitions. Sometimes they're provided as part of the O/R tool (e.g., Hibernate) and sometimes they are available separately (e.g., UnitTest.NET for .NET and UnitTest.NET Compact Framework for .NET Compact Framework). You can also customize these extended model definitions or develop your own. For further details about this, refer to PowerDesigner's Advanced User Documentation. Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||