|
Object Model Customization
Contents
Prime Classes
Standalone Classes
• The Base Class selector specifies what existing class the new class inherits from and therefore places it at a specific spot in the overall inheritance hierarchy. Every business object must ultimately (that is, either directly or indirectly) inherit from either the Persistent or the Dependent abstract classes in APM. Every class is thus referred to as either Persistent or Dependent, depending on its ultimate base class. Your standalone class should have Persistent as the base class.
• The Persistent in Table option defines a distinct table in the relational database when set (that is, when the class has schema). Only Persistent objects have schema. Furthermore, classes that are persisted cannot serve as base classes for other classes. They define a leaf in the inheritance hierarchy. Your standalone class should have the Persistent in table checkbox set to True.
• The Primary Locking Object option defines the locking root of its containment hierarchy. Primary Locking Objects are independently lockable. Only Persistent classes are eligible to be Primary Locking Objects. If a class is not Primary, it is said to be Secondary. The Primary Locking Object designation drives implications into the user interface: Primary objects can be represented either by Primary Views or by Dialog Boxes, but Secondary objects can only be depicted in Dialog Boxes. Your standalone class should have the Primary Locking Object checkbox set to True.Join Path to Site
Attributes
Enumerated Lists
Relationships
•Deletion Rules
When you create custom relationships, you can also set the deletion behavior of the related objects. For example, if you create a custom relationship from Asset to Employee, you could set the deletion behavior so that the employee reference is nulled out on the asset when the employee is deleted. For more information, see Creating Deletion Rules for Relationships.Validation Rules
For more information, see Creating Custom Validation Rules for Attributes, Creating Custom Validation Rules for Relationships, and Creating Custom Messages.Custom States
• Warning: This option generates a warning message when the attribute or relationship violates the condition.
• Mandatory: This option generates an error message when the attribute or relationship violates the condition.
• Read-only: By default, attributes and relationships are editable, but you can make them read-only for your condition.
• Visible - irrelevant: This option is only available for custom attributes and relationships. You cannot set base APM attributes or relationships to visible - irrelevant.
• Invisible - irrelevant: This option is only available for custom attributes and relationships. You cannot set base APM attributes or relationships to visible - irrelevant.
• Not visible: This option hides the attribute or relationship under the specified condition.
•
•
•
•
•