Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Data modeling with InfoSphere Data Architect and Informix Dynamic Server

Accelerate data integration projects and create trusted information assets

Venkatesh Gopal (gopalv@us.ibm.com), Senior Software Engineer, IBM
Author Photo: Venkatesh Gopal
Venkatesh Gopal is a Senior Software Engineer working in the Data Studio team. He has over 14 years of experience in application development for databases using different technologies (Java, Microsoft and 4GLs) and also Eclipse technologies.
Srini Bhagavan (srinib@us.ibm.com), Senior Software Engineer, IBM
Srini Bhagavan
Srini Bhagavan is a Senior Software Engineer and Development Manager working in the Data Studio team. He has over 15 years of experience in database technology, Telecom, Open Source Application development and more recently in building Eclipse based administration tools for DB2, Informix and MySQL.

Summary:  This tutorial shows you how to use IBM® InfoSphere® Data Architect (IDA) (formerly IBM Rational® Data Architect) as a modeling tool for Informix® Dynamic Server (IDS), and has been updated to include information about the 7.5.1 release of IDA. Learn about the various features of IDA, including how models can be used to represent business entities, database entities, and domain entities. Follow along with scenarios and examples that reveal the benefits IDA provides specifically for IDS.

Date:  12 Mar 2009 (Published 26 Nov 2008)
Level:  Intermediate PDF:  A4 and Letter (1317 KB | 43 pages)Get Adobe® Reader®

Activity:  35758 views
Comments:  

Enhancing your model then syncing it up with the physical model

At some point in time you may have to enhance your logical model and then move the changes to your physical model. You can do this by simply adding a new logical entity to the logical model and then comparing the model with the physical model. Say you want to change your Bookstore example to be a Library now. In order to do this, you need a new Library entity but want to keep all of the other existing entities. In other words, the new logical model will have Library, Book, Author and BookCategory as the logical entities.

Here are the steps:

  1. Add a Library Entity with two TimeStamp fields — DateCheckedOut and DateDue — to the logical model using the steps described in the previous section.
  2. After that, create a relationship between Library and Book using BookID. As a reminder, highlight the Book entity, and after you see two boxes, drag it from the Book entity to the Library entity.
  3. Transform from a logical to a physical model as described in Step 6 of the previous section. In this instance, however, choose Update Existing Model and click on Browse to pick up the storesLogicalModel.dbm file.
  4. Once that is done, you will see a compare screen like the one shown in Figure 31, below, showing you what the differences are between the two models. From this screen, you can specify what you would like to do with the differences (copy the change or ignore the change). For example, to merge changes from the physical model to the database you can:

    1. Highlight the Library entry.
    2. Use the toolbar (shown circled in Figure 31) to copy over the LIBRARY change from the logical to the physical model.
    3. Click on the Generate DDL button (which is circled in Figure 31) to generate the necessary DDL for the delta change.



    Figure 31. Syncing up logical with physical models
    Syncing up logical with physical models

  5. Once the changes are done, you can go to the physical model and change the column types. Because the TIMESTAMP type gets transformed to a CHAR(10) type (this is the default, and can be changed using the preferences option described below), you can change it to an Informix-specific DATETIME YEAR TO SECOND data type for both the DateCheckedOut and DateDue columns. You can also do this when the transform is taking place as well when the changes are copied over from the logical to the physical model.

6 of 12 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management, Rational
ArticleID=375754
TutorialTitle=Data modeling with InfoSphere Data Architect and Informix Dynamic Server
publish-date=03122009
author1-email=gopalv@us.ibm.com
author1-email-cc=
author2-email=srinib@us.ibm.com
author2-email-cc=