Reference - ObjectTypeInfo
This page provides a reference of the ObjectTypeInfo
properties that you can use to set the type information for object types.
The reference lists the ObjectTypeInfo
members that are intended for public use. The class also contains other members, which are used internally or handled automatically by the system. We don’t recommend working with any of the undocumented members.
The ObjectTypeInfo
class has the following types of properties:
- Constructor
- Database columns
- General
- Object type relationships and bindings
- Continuous integration
- Macros
Constructor
The following properties are always set through the constructor parameters when creating new ObjectTypeInfo
instances:
Property | Type | Description |
BinaryColumn | string | The name of the column that stores binary data associated with the object type. Can be |
CodeNameColumn | string | The name of the column that stores the unique text identifiers of objects. Can be |
DisplayNameColumn | string | The name of the column that stores the visible names of objects (names used in the administration interface or on the live site). Can be |
GuidColumn | string | The name of the column that stores the GUID identifiers of objects. Can be |
IDColumn | string | The name of the primary key column. Created together with the object type’s data class and non-removable. |
ObjectClassName | string | Required for all object types. The code name that is assigned to the data class in the Xperience administration interface. Identifies the class’s definition in the database. |
ObjectType | string | Required for all object types. Serves as the primary identifier string for the object type. Use the identifier to select objects of a particular type via the API or when building user interfaces. Code generators automatically create the |
ParentIDColumn | string | The name of the column that stores the IDs of parent objects. Set to See the parent-child relationships section of Model object type relationships for more information. |
ParentObjectType | string | The name of the object type’s parent (defined in the type information of the parent class within the Set to |
ProviderType | Required for all object types. The type of the type’s InfoProvider class. For example: | |
TimeStampColumn | string | The name of the column that stores the last modification date for objects. Can be |
> Back to list of ObjectTypeInfo property types
Database columns
In addition to the *Column
properties used in the ObjectTypeInfo
constructor, you can set the following optional properties to set database columns that perform a specific function:
Property | Type | Description |
ExtensionColumn | string | Intended for objects that store associated binary data. Sets the name of the column that stores the extension type of the binary data. Used by CI/CD when serializing the associated binary data. |
ObjectLevelColumn | string | Intended for object types that form a tree hierarchy. Sets the name of the column that stores the level of objects in the hierarchy structure. |
ObjectPathSettings | PathSettings | Intended for object types that form a tree hierarchy. Sets the name of the column that stores the path of objects in the hierarchy structure. You can also set the path column separately for paths built out of objects names or object IDs through the The system uses the stored paths to more efficiently delete child objects when a parent is being deleted and when serializing the objects via CI/CD. |
> Back to list of ObjectTypeInfo property types
General
Property | Type | Description |
IsCategory | bool | Indicates whether the object type represents a category for organizing other objects in a tree hierarchy. The default value is |
LogEvents | bool | Indicates whether the system logs events into the Event log when objects of the object type are modified. |
ProviderObject | IInfoProvider | Read-only property. Gets an instance of the See: Database table API |
TouchCacheDependencies | bool | Indicates whether the system touches the corresponding dummy cache keys when an object is modified. This causes the cache to delete all items that depend on the given dummy keys. Set to true if you wish to use objects of the object type as cache dependencies. Populated by the code generator for binding object types. See also: Cache dependencies |
> Back to list of ObjectTypeInfo property types
Object type relationships and bindings
Property | Type | Description |
CheckDependenciesOnDelete | bool | Applies to object types that are the target of a Required type reference. See the one-to-many relationships section on Model object type relationships for more information. If you set Defaults to |
DependsOn | List<ObjectDependency> | Registers fields that store references from the type to other types (i.e., foreign key columns). Allows the system to maintain the referential integrity of relationships when a referenced object is deleted. Assign a Note: Do not include the parent reference fields specified in the See the one-to-many relationships section on Model object type relationships for more information. |
Extends | List<ExtraColumn> | Registers external fields that store references from other classes in the system to the given class. Allows the system to maintain the referential integrity of relationships when objects are removed from the system. Assign a List collection of See the one-to-many relationships section on Model object type relationships for more information. |
IsBinding | bool | Indicates whether the object type represents a relationship between two or more object types. See the many-to-many relationships section on Model object type relationships for more information. |
ParentTypeInfo | ObjectTypeInfo | Read-only property. Returns the |
> Back to list of ObjectTypeInfo property types
Continuous integration
Property | Type | Description |
ContinuousIntegrationSettings | ContinuousIntegrationSettings | Determines how the class works with the system’s CI/CD solution. Set through the properties of the |
SerializationSettings | SerializationSettings | Determines how the system serializes the class’s objects from the database into XML data. Serialization is used by the system’s CI/CD solution. Set through the properties of the |
> Back to list of ObjectTypeInfo property types
Macros
Property | Type | Description |
MacroSettings | MacroProcessingSettings | Configures the behavior of the class within the system’s macro engine. Set through the properties of the
|
SensitiveColumns | List<string> | Specifies class fields that the system excludes from macro expressions. Allows you to protect fields with sensitive values (e.g., passwords). Set the sensitive columns by assigning a |