Property | Type | Description | |
---|---|---|---|
RelationshipDef | System |
Method | Description | |
---|---|---|
CheckCanAddChild ( IBusinessObject bo ) : void |
Can the child business object be added to this relationship. Typically a persisted child business object cannot be added to a compositional relationship. A new (i.e. unpersisted) child object can however be.
|
|
CheckCanRemoveChild ( IBusinessObject bo ) : void |
Checks to see whether a business object can be removed from the relationship. Typically a business object cannot be removed from the relationship if the relationship is composition.
|
|
CreateRelationship ( IBusinessObject owningBo, IBOPropCol lBOPropCol ) : IRelationship |
Create and return a new Relationship based on the relationship definition.
|
Method | Description | |
---|---|---|
RelatedClassDefLoaded ( ) : bool |
Returns true if the related class def has been loaded already.
|
|
RelationshipDef ( string relationshipName, Type relatedObjectClassType, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, DeleteParentAction deleteParentAction ) : System |
Constructor to create a new relationship definition
|
|
RelationshipDef ( string relationshipName, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, DeleteParentAction deleteParentAction, InsertParentAction insertParentAction, RelationshipType relationshipType ) : System |
Constructor to create a new relationship definition
|
Method | Description | |
---|---|---|
RelationshipDef ( string relationshipName, Type relatedObjectClassType, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, DeleteParentAction deleteParentAction, InsertParentAction insertParentAction, RelationshipType relationshipType ) : System |
public CheckCanAddChild ( IBusinessObject bo ) : void | ||
bo | IBusinessObject | |
return | void |
public CheckCanRemoveChild ( IBusinessObject bo ) : void | ||
bo | IBusinessObject | The business object being removed |
return | void |
public abstract CreateRelationship ( IBusinessObject owningBo, IBOPropCol lBOPropCol ) : IRelationship | ||
owningBo | IBusinessObject | The business object that owns /// this relationship e.g. The department |
lBOPropCol | IBOPropCol | The collection of properties of the Business object |
return | IRelationship |
protected RelationshipDef ( string relationshipName, Type relatedObjectClassType, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, DeleteParentAction deleteParentAction ) : System | ||
relationshipName | string | A name for the relationship |
relatedObjectClassType | Type | The class type of the related object |
relKeyDef | IRelKeyDef | The related key definition |
keepReferenceToRelatedObject | bool | Whether to keep a /// reference to the related object. Could be false for memory- /// intensive applications. |
deleteParentAction | DeleteParentAction | The required action when the parent is deleted e.g. Dereference related, delete related, prevent delete |
return | System |
protected RelationshipDef ( string relationshipName, string relatedObjectAssemblyName, string relatedObjectClassName, IRelKeyDef relKeyDef, bool keepReferenceToRelatedObject, DeleteParentAction deleteParentAction, InsertParentAction insertParentAction, RelationshipType relationshipType ) : System | ||
relationshipName | string | A name for the relationship |
relatedObjectAssemblyName | string | The assembly that the related object is in |
relatedObjectClassName | string | The class type of the related object |
relKeyDef | IRelKeyDef | The related key definition |
keepReferenceToRelatedObject | bool | Whether to keep a /// reference to the related object. Could be false for memory- /// intensive applications. |
deleteParentAction | DeleteParentAction | The required action when the parent is deleted e.g. Dereference related, delete related, prevent delete |
insertParentAction | InsertParentAction | |
relationshipType | RelationshipType | |
return | System |