SSDM - Sibilo Software Development Model

Search 
(by Google)
     

Developer's Corner - Common Constructors
  1. Introduction
    1. Overview (N-tier Architecture)
    2. Downloads
  2. Requirements Capture
    1. Natural Language Text to UML
  3. UML Static Data Model
    1. Object / Class
    2. Relationships
    3. Data Type / Enumeration
    4. Supported Data Types
  4. Application Design
    1. Database (UML-DB Mapping)
    2. Business Objects (UML-Class Mapping)
    3. User Interface (UML-User Control Mapping)
  5. Sibilo Software Development Environment (Sibilo.SDE)
    1. Sibilo.SDE User Guide
  6. Sibilo.DBL Programming
    1. Introduction
      1. Background Information
      2. The Clist Class
    2. Core Objects
      1. Common Constructors
      2. Common Destructors
      3. Common Properties
      4. Common Methods
        • Add
        • Update
        • Remove
        • GetDetails
        • Load
        • Equals
      5. Shared Methods
        • GetAll
        • Remove
        • RemoveAll
        • Exists
        • Search
        • ObjectCount
        • CreateInstance
      6. User Defined Attributes
        • AddAttribute
        • RemoveAttribute
        • GetAttributeList
        • GetClassList
        • GetAttribute
        • SetAttribute
    3. Relationships
      1. Overview
      2. One-to-One Relationships
      3. One-to-Many and Many-to-Many Relationships
        • Add
        • Remove
        • RemoveAll
        • Exists
      4. Default Object of a Relationship
        • SetDefault
        • GetDefault

6.2.1 Common Constructors

There are 2 common constructors for SSDM objects. Both of them require passing an instance of the CApp class. The basic constructor for CUser, for example, is:

Dim oUser As New CUser()

If you know the ID of an object, you can use it while constructing the object so that the object’s properties are loaded.

Dim oUser As New CUser(103)

SSDM classes can have additional constructors.

 

Important Note:

SSDM supports the data from multiple instances of an application to be stored in a single database. To support this, the above methods can also be used as follows;

Dim oUser As New CUser(App)

Dim oUser As New CUser(App, 103)

When the App object is not passed into the object, the default application is used. For the sake of simplicity, this guide will only show the use of methods with the default application.