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:  35790 views
Comments:  

Enforcing consistency by attaching domain elements to your model

A domain model describes the domain types that an organization allows and their constraints. Using domain data types instead of base data types ensures that you maintain consistency across an organization, and allows reuse of common data type definitions for greater team efficiency.

You can add some domain-specific rules into the model by creating a domain model and then attaching the domain level elements to your logical or physical model. In this example, the Library logical model is extended to add a Member Entity. The Member entity has MemberID, Address and License Attributes. The License field has protected information considered to be of PII (Personal Identification Information) category, so it has to have certain special rules applied. For this to happen, you have to create a domain model first.

  1. Navigate to the root of the storesModel project and right-click on New > Domain Model.
  2. Give it the name LibraryDomainModel and then click on Finish.
  3. Navigate to LibraryDomainModel.ddm in the Data Project Explorer and then right-click on Package1 and select Add Data Object > Atomic Domain.
  4. In the Properties tab shown below, set the fields as follows in the Properties view:
    • Enter LicenseType for the Name field
    • Select CHAR from the Base Type drop-down
    • Set the Length field to 20
  5. In the Privacy tab:
    • Select PII from the Classification drop-down
    • Use the Masking Method field to set a masking method. (Masking methods are employed by the IBM Optim Data Privacy Solutions and Test Data Manager to mask data when the data is being extracted for test purposes, thereby hiding the original data. IDA 7.5.1 provides this integration with IBM Optim 6.x. You can export the model to an Optim-specific file format and then use the Optim tool for test data extraction purposes. See Resources for a link to the Data Architect e-Kit, which includes a tutorial on how to do this — "Manage data privacy from design to development" (developerWorks, December 2008).

After you have created your domain model, you can add a new logical model entity for Member with details as shown in Figure 33 and set its attributes to:

  • MemberID - Integer
  • Address - character - length 50
  • License - LicenseType
  • Also, add a relationship between Library and Member using MemberID

You can then translate the model to a physical model, and also export the physical model to the Optim Format for use by the Optim Test Data Manager product.


Figure 33. Final LogicalModel
Final LogicalModel

8 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=