DomainObjects Class Library

EditableObject Members

EditableObject overview

Public Instance Properties

HasDatabaseIdentity (inherited from TransactableObject) 
Identity (inherited from PersistableObject) Uniquely identifies a persistable object by type and primary key.
IsDeletedFromDatabase (inherited from TransactableObject) Determine if this instance has been successfully deleted from the database. If true, then methods cannot be called against this instance and all references to this instance must be nullified.
IsEdited 
IsNew (inherited from TransactableObject) 
IsPrivateCopy (inherited from TransactableObject) 
IsReconstructed (inherited from PersistableObject) Indicates that this object has been reconstructed from the database rather than retrieved from the cache. For internal DomainObject use only.
NeedsDelete (inherited from TransactableObject)
PrimaryKey (inherited from PersistableObject) 
VersionNumber 

Public Instance Methods

CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Delete (inherited from TransactableObject) Delete this instance from the database upon transaction Commit. After calling this method NeedsDelete returns true.
Equals (inherited from PersistableObject)Overloaded. Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from PersistableObject) Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetObjectData Gets the object data.
GetPrivateCopy (inherited from TransactableObject) Get a private copy of this object that is in an 'isolated' state. If this instance is already a private copy, just return this instance back to the caller. An 'isolated' state indicates that this persistable object is only accessible by a single transaction, i.e., the caller of this method, and therefore can be safely modified without other transactions or threads seeing those modifications.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject)Obtains a lifetime service object to control the lifetime policy for this instance.
Manage (inherited from TransactableObject) Enables DomainObjects to manage the persistence- relevant state of this object. This method must be called immediately after constructing an EditableObject so that DomainObjects can manage modifications to the instance; a client must not hold a direct reference to an EditableObject.
OnDeserialization (inherited from PersistableObject) 
ToString (inherited from PersistableObject) Returns a String that represents the current Object.

Public Instance Events

OnAbortedTransaction (inherited from TransactableObject) An event that subscribers can use to be notifed when this instance has participated in an aborted transaction. If modifications to this instance have been aborted, then methods cannot be called against this instance and all references to this instance must be nullified.
OnAfterInsert (inherited from TransactableObject) An event that indicates this instance is transitioned from
IsNew == true
to
IsNew == false
. In other words, this instance has been inserted successfully into the database.
OnDeletedFromDatabase (inherited from TransactableObject) An event that subscribers can use to be notifed when this instance has been deleted from the database. If this instance has been deleted, then methods cannot be called against this instance and all references to this instance must be nullified.
OnIdentityChange (inherited from TransactableObject) 

See Also

EditableObject Class | DomainObjects.Facade.Domain Namespace