AtomsFramework Persistence Layer Reference Guide

IPersistableObject Members

IPersistableObject overview

Public Instance Properties

AssociationsLoaded Flag indicating that an objects AutoRetrieve associations have been retrieved.
ExpiryInterval The minimum time (in minutes) that the object will remain in the cache before it is re-read from the database.
GuidValue The GUID (Globally Unique Identifier) of the current object
IsDirty Flag indicating that the object has been modified
IsLoading Indicates if the object is currently being loaded by the persistence broker.
IsModifyOnly Flag to indicate that objects cannot be created or deleted.
IsProxy Indicates if the all atributes are populated or only those marked as proxy attributes
IsQueued Indictaes if the object has been queued for saving
IsReadOnly Flag to indicate if the object is read only.
OidValue The ObjectID of the current object
OriginalCacheKey A CacheKey object used to hold the original key values for an object
Persistent Flag indicating wether the object is persistent or not
State The PesistenceState of the object

Public Instance Methods

Copy Make a copy of the current object
CopyOneToManyCollections Copies collections used in One-To-Many associations.
Equals Determines if another object is equivalent to the current object.
GetClassMap Gets the class map for an object
GetCollectionByAttribute Gets a PersistentObjectCollection from an object attribute by name
GetFieldLengthByName Gets the length of a mapped attribute in the database
GetFieldTypeByName Gets the database type of a mapped attribute
GetObjectByAttribute Returns a persistent object using a named attribute.
GetObjectByClassMap Get an object by a class map
GetObjectType Obtains the type of the current source object
GetRemovedCollectionItems Returns a collection of objects that have been removed from a property since the object was retrieved.
GetSourceObject Obtain a reference to the source object.
GetValueByAttribute Returns the value of any attribute in the object
HasValidKey Inidicates if the object's key fields are populated
IsIPersistentObject Indicates if the object also implements the IPersistentObject interface.
ReplaceWith Replaces member values of the current object with values from the supplied object
SetAttributeValue Set the value of any attribute in an object.

See Also

IPersistableObject Interface | AtomsFramework Namespace