OptimizedPersistable Methods |
The OptimizedPersistable type exposes the following members.
Name | Description | |
---|---|---|
Clone |
See MemberwiseClone | |
CompareTo |
Compares objects using the object Id | |
Equals |
Determines whether the specified Object is equal to the current Object. If this object or other object isn't persistent we call Equals(Object) (Overrides ObjectEquals(Object).) | |
FlushTransients |
Process data in transient fields (if any), do whatever is required to persist such data if needed. By default does nothing.
| |
GetDataMembers |
Gets a list of the fields meta data objects
| |
GetFieldValues |
Returns a list of field values of this object or returns it as an array (if this is an array)
| |
GetHashCode |
Computes a hash code based on Oid of object.
Make sure to persist objects before using GetHashCode() or override GetHashCode()
(Overrides ObjectGetHashCode.) | |
GetPage |
Get the persistent storage Page of this object
| |
GetSession |
Gets the session of this object or null if this object isn't yet persisted.
| |
GetTypeVersion |
The database engine needs this internally
| |
GetWrappedObject |
Internally used when IOptimizedPersistable is a wrapper for a non IOptimizedPersistable | |
InitializeAfterRead |
This function is called when an object has been read from disk and all data members (fields) have been loaded. Override this to provide your own initializations of transient data.
| |
InitializeAfterRecreate |
This function is called when an object has been read from disk before all data members (fields) have been fully loaded. Override this to provide your own initializations of transient data.
| |
ListToString |
This is a support function for the VelocityDbBrowser
| |
OidOf | Gets the Oid (encoded as an UInt64) of a non OptimizedPersistable object or 0 if the object isn't persistent on the same page as this object. | |
Open(UInt32, Boolean, Boolean) |
Opens a persistent object located in the same Database as this object
| |
OpenT(UInt32, Boolean, Boolean) |
Opens a persistent object located in the same Database as this object
| |
OptimizedPersistableFieldValues |
Gets a list of all field values of the current object that are subclasses of OptimizedPersistable
| |
Persist(SessionBase, IOptimizedPersistable, Boolean, Boolean) |
Persists this object.
| |
Persist(Placement, SessionBase, Boolean, Boolean, QueueIOptimizedPersistable) |
Persists this object. Override in your subclasses when you want fields of your class to be persisted in some special way.
| |
PersistentVersion |
Gets the page version of a persistent object
| |
PersistMyReferences |
Persists references from this object
| |
ReadMe |
Used by code generator
| |
ReadMeUsingSchemaReflection |
Used by code generator. By default objects are read and written using persisted schema information and reflection.
| |
SetPage |
Sets the persistent storage Page of this object
| |
SetTypeVersion |
The database engine needs this internally
| |
ShallowCopyTo |
Internal use for now
| |
ToString |
Displays class name plus object id
(Overrides ObjectToString.) | |
Unpersist |
Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.
| |
Update |
Marks an object as being updated so that object will be written at commit transaction. Call before making object changes!
| |
Update(Action) |
Marks an object as being updated so that object will be written at commit transaction. Call before making object changes! Add code to update object in Action parameter.
| |
UpdateNonIndexField |
Marks an object as being updated so that object will be written at commit transaction. Call before updating a NON indexed field.
Same as Update but avoids deleting object from indices (if any). If updating a field used in any index, call Update instead
or you may end up with one or more corrupt indices.
| |
UpdateTypeVersion |
Updates the object and make this object use the latest Type definition for its class. The object now will now adjust for data attribute changes.
| |
Write |
By calling this you force a persisted (has an Id) object to be written to disk (if updated) and indices (if any) to be updated. Other objects on the same page will also be written.
| |
WriteMe |
Used by code generator.
| |
WriteMeUsingSchemaReflection |
Used by code generator. This is the default way of writing objects using schema information and .NET reflection info.
|
Name | Description | |
---|---|---|
ToStringDetails(SessionBase, Boolean) | Overloaded.
Object details as a string
(Defined by Utilities.) | |
ToStringDetails(Schema, TypeVersion, Boolean) | Overloaded.
Currently only used by Database Manager
(Defined by Utilities.) |