IObject Interface |
Namespace: PDTec.IceNet.Core.Model
public interface IObject
The IObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | ChangedBy |
Gets the name of the user who changed the object last.
|
![]() | ChangedOn |
Gets the point of time the object was changed last.
|
![]() | CreatedBy |
Gets the name of the user who created the object.
|
![]() | CreatedOn |
Gets the point of time the object was created.
|
![]() | Description |
Gets or sets the object description. The description can be empty.
|
![]() | Folder |
Gets the containing folder.
|
![]() | Id |
Gets the object ID. The ID is generated by the platform and
cannot be modified.
|
![]() | IsLocked |
Indicates if the object is locked.
|
![]() | IsValid |
Indicates if the object instance is valid. The object becomes
invalid if the Destroy method has been called.
|
![]() | LockedBy |
Gets the name of the user who holds a lock on the object, empty
string if the object is not locked.
|
![]() | LockedOn |
Gets the lock timestamp, if object is locked. DateTime.MinValue if not.
|
![]() | Name |
Gets or sets the object name. The name cannot be an empty string. It is
modifiable and does not have to be unique.
|
![]() | ObjType |
Gets the object type.
|
Name | Description | |
---|---|---|
![]() | AddKey |
Adds a new key to the object. The key must be unique
within the system context (e.g. unique per database).
|
![]() | AsT | Obsolete.
Casts to a Business Object interface.
|
![]() | CastT |
Casts to a Business Object interface. Throws an exception if the Business Object
interface is not available for this object.
|
![]() | ChangeObjType |
Change the object type.
|
![]() | CopyTo |
Copies the object. Attributes of the object are copied, relationships not.
|
![]() | DeleteKey |
Removes a key from the object.
|
![]() | Destroy |
Deletes the object (and its relationships).
|
![]() | GetAttrValue(IAttrDef) |
Retrieves the specified attribute value.
|
![]() | GetAttrValue(String, String) |
Retrieves the specified attribute value.
|
![]() | GetAttrValue(IAttrDef, Boolean) | Obsolete.
Retrieves the specified attribute value and indicates if the value is assigned.
|
![]() | GetAttrValue(String, String, Boolean) | Obsolete.
Retrieves the specified attribute value and indicates if the value is assigned.
|
![]() | GetAttrValues |
Get all attribute values of the object.
|
![]() | GetFolder |
Retrieves the object's folder.
|
![]() | GetKeys |
Retrieves the object's (unique) keys.
|
![]() | GetLockInfo |
Retrieves information about the object's lock status.
|
![]() | GetObjType |
Retrieve the object type.
|
![]() | GetRelationships(RelDirection) |
Retrieves all attached relationships of a specific direction (regardless of their relationship type).
|
![]() | GetRelationships(String, RelDirection) |
Retrieves all attached relationships of a specific role (relationship type/direction combination).
|
![]() | GetRelationships(IRelType, RelDirection) |
Retrieves all attached relationships of a specific relationship type in a
specific direction.
|
![]() | GetSingleRelationship(String, RelDirection) |
Retrieves a single relationship (omit the array overhead).
|
![]() | GetSingleRelationship(IRelType, RelDirection) |
Retrieves a single relationship (omit the array overhead).
|
![]() | GetTableAttrTemplateRow |
Gets a table attribute template row.
|
![]() | GetTableAttrValues |
Gets the table attribute values.
|
![]() | IsOf(String) |
Indicates if the object conforms to a specific object type directly
or indirectly (is a subtype of).
|
![]() | IsOf(IObjType) |
Indicates if the object conforms to a specific object type directly
or indirectly (is a subtype of).
|
![]() | Lock |
Lock the object.
|
![]() | MoveTo |
Moves the object to another folder.
|
![]() | QueryInterface |
Cast to a Business Object interface.
|
![]() | Reload |
Refreshes the object data from secondary storage (e.g. database)
if available. Use this method to retrieve up-to-date audit information
(ChangedBy, ChangedOn properties).
|
![]() | SetAttrValue(IAttrDef, Object) |
Stores the specified attribute value.
|
![]() | SetAttrValue(String, String, Object) |
Stores the specified attribute value.
|
![]() | SetAttrValues |
Set multiple attribute values with a single method call.
|
![]() | SetRelationshipIndex |
Re-position a relationship within the object/reltype/direction order.
|
![]() | SetRelationshipIndices |
Re-order all relationships of a object/reltype/direction context.
|
![]() | SetTableAttrValues |
Sets the table attribute values.
|
![]() | Touch |
Updates the ChangedBy and ChangedOn information.
|
![]() | TryCastT |
Casts to a Business Object interface.
|
![]() | TryGetAttrValue(IAttrDef, Boolean) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(IAttrDef, DateTime) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(IAttrDef, Double) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(IAttrDef, Int64) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(IAttrDef, Object) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(IAttrDef, String) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(String, String, Boolean) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(String, String, DateTime) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(String, String, Double) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(String, String, Int64) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(String, String, Object) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetAttrValue(String, String, String) |
Attempts to get the specified attribute value and indicates if the value is assigned.
|
![]() | TryGetSingleRelationship(String, RelDirection, IRelationship) |
Tries to retrieves a single relationship.
|
![]() | TryGetSingleRelationship(IRelType, RelDirection, IRelationship) |
Tries to retrieves a single relationship.
|
![]() | UnLock |
Unlock the object.
|
Name | Description | |
---|---|---|
![]() | GetFolderId |
Gets the folder ID without unneccessarily retrieving the full folder information.
(Defined by ModelExtensions.) |
![]() | GetRepository |
Gets the corresponding repository for an object.
(Defined by ModelExtensions.) |
![]() | IsConnected(String, RelDirection) | Overloaded.
Detects whether an object is connected by at least one relationship of a specific type.
(Defined by ModelExtensions.) |
![]() | IsConnected(IRelType, RelDirection) | Overloaded.
Detects whether an object is connected by at least one relationship of a specific type.
(Defined by ModelExtensions.) |
This example shows how to create objects.
IObjType pObjType = Repository.GetObjTypeByName("PDTec.ICR.SportsCar"); IFolder pFolder = Repository.GetFolderByKey("ICR.Data.Cars"); Repository.ExecuteTransaction(delegate() { // Create an object... IObject pNewObject = Repository.pObjType.CreateObject(pFolder, "Porsche 911", ""); // ...[do something with the new object]... });
This example shows how to retrieve objects.
// Retrieve an object (identified by an object ID)... IObject pObject = Repository.GetObject(objectId); // ...[do something with the object]...