Commerce Server 2002 SDK
Class Definition Meta-data

The Class meta-data contains attributes used to define a class. The OLE DB Provider for Commerce Server creates the tables and links required to store the class information based on the attribute values. A class defines a set of logically related data. Classes model physical objects (user, product, server, organization) or conceptual entities (visit, Web hit, event).

For an overview of the logical grouping of these classes into primary business categories, see Dividing the Data Warehouse into Primary Business Categories.

For information about creating a new class, see Creating a New Class.

The following table shows the attributes used for the class definitions. A set of these attributes is stored in the Class table for each class defined.

The following terminology describes the attribute requirements listed in the following table.

  • A value in quotes is required and must be supplied by the user.
  • An unquoted value indicates the default, which can be overridden by the user.
  • "Leave blank" indicates that the attribute should not be assigned.
  • "Optional" indicates that the value is user-assigned but can be left blank.
  • "Required" indicates that the value is user-assigned and required.
AttributeData TypeConstraintRequirementDescription
ClassDefIDintNOT NULLLeave blankStores the internal identifier for the class.
BaseClassNamenvarchar (128)NULLOptionalStores the name of the base class. Used for aggregations.
CatalogIDintNULLLeave blankStores the identifier for the schema catalog.
CatalogNamenvarchar (128)NULLLeave blankStores the name of the schema catalog, "DWSchema."
ClassDefNamenvarchar (57)NULLRequiredStores the name of the class.
ClassGUIDvarbinary (16)NULLLeave blankStores the GUID for the class.
ClassTypesmallintNULLOptionalStores the class type. Valid types are:

0 = None
1 = Dimension
2 = Fact
3 = Aggregation

CreatedTimedatetimeNULLReservedStores the time the class was created.
DefaultParentURLnvarchar (128)NULLLeave blankStores the default parent URL for the class.
DefaultTableNamenvarchar (57)NULLLeave blankStores the default table name associated with the class.
Descriptionnvarchar (128)NULLOptionalStores the description of the object.
DisplayNamenvarchar (128)NULLOptionalStores the display name of the object.
GenerateIdentitytinyintNULLLeave blankTrue (1) indicates the ID for the class will be generated automatically.
GenerateKeyDeftinyintNULLRequiredSet to True (1) if this class key has a single member. Set the IsPrimaryKey attribute to True (1) for the member. If this class key has more than one key member, a key definition must be explicitly defined.
GeneratePartitionDeftinyintNULLLeave blankTrue (1) indicates the partition definition will be generated automatically.
GenerateTableDeftinyintNULLLeave blankTrue (1) indicates the table definition will be generated automatically.
IdSizeintNULLLeave blankStores the size of the identifier data in bytes.
InstExclusionExprnvarchar (128)NULLOptionalUsed as a filter for aggregations.
IsAbstracttinyintNULLOptionalIndicates if the class is abstract. Abstract classes cannot be instantiated, but can be derived from. Default value is False (0).
IsActivetinyintNULLOptionalIndicates if the class is active (instances may be added). Default value is 1.
IsPersistenttinyintNULLOptionalIndicates if the class is persisted in the underlying data store. Default value is 1.
IsReadOnlytinyintNULLOptionalIndicates if the class is read-only. Default value is 0.
IsTransactionedtinyintNULLOptional for PROFILING SYSTEM

Leave blank for Analysis

Used by the Profiling System.
IsUIDeletedEnabledtinyintNULLReservedReserved.
MajorVersionintNULLReservedStores the major version number for the class.
MinorVersionintNULLReservedStores the minor version number for the class.
ModifiedTimedatetimeNULLReservedStores the last time the class was modified.
PartCriteriaExprnvarchar (128)NULLLeave blankReserved.
PartitionIDintNULLLeave blankReserved.
PartitionNamenvarchar (128)NULLLeave blankStores the name of the default partition for the class.
PartViewNamenvarchar (128)NULLLeave blankReserved.
SourceDefNamenvarchar (128)NULLRequiredStores the name of the data source. A class definition has a SourceDef to describe where the data for a class will be stored. The SourceDef for new classes should be set to test_source.
SourceIDintNULLLeave blankStores the identifier for the data source.
StatusintNULLReservedReserved.

Copyright © 2005 Microsoft Corporation.
All rights reserved.
Page view tracker