C++ C#

Item Class

Namespace: Semata.DataStore

An instance of an ItemType. It can have Attributes and Associations as defined by its ItemType.

public interface Item

Methods

Name Description
AddAssociation(AssociationType, Item) Associates this Item with another
AddAssociation(string, Item) Associates this Item with another
AssociationExists(AssociationType, Item) Is this item associated with another
AssociationExists(string, Item) Is this item associated with another
Delete() Deletes this Item
GetAssociations(AssociationType) Gets all the Items associated with this one, by the AssociationType
GetAssociations(string) Gets all the Items associated with this one, by the AssociationType
GetAttribute(AttributeType) Gets the value of an Attribute
GetAttribute(string) Gets the value of an Attribute
GetConnection() The current Connection
GetItemId() The id of this Item
GetItemType() The ItemType of this Item
RemoveAssociation(AssociationType, Item) Removes the association of this Item with another
RemoveAssociation(string, Item) Removes the association of this Item with another
SetAttribute(AttributeType, object) Sets the value of an Attribute
SetAttribute(string, object) Sets the value of an Attribute