Caché QuickStart Tutorial
Creating a New Class
[Home] [Back] [Next]
InterSystems: The power behind what matters   

Begin by creating the Contact class using the Studio New Class Wizard:

  1. Click File–>New on the Studio menu bar.
  2. On the New dialog, click the General category and then the Caché Class Definition template. Click OK. This launches the New Class Wizard.
  3. On the first page of the New Class Wizard , enter ContactDB for the Package Name and Contact for the Class Name. Click Next.
  4. The Wizard's second page allows you to select the class type. Click Persistent and then click Next.
  5. The Wizard's third page allows you to specify additional characteristics for the class. Click XML Enabled, Zen DataModel, and Data Population. Click Finish.
  6. The Studio Editor displays the newly created class definition:
  7. Notice that Contact extends several classes:
To learn more about Caché XML tools, read Using Caché XML Tools.
%ZEN.DataModel.Adaptor is part of the Zen MVC (Model-View-Controller) framework. To learn more about Zen MVC, read Model View Controller in Using Zen Components.

Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA