Implements the IXPObject and provides an autogenerated integer key mapped to the 'OID' field.
Persistent objects are the objects that can be saved to and restored from a data store. Persistent objects represent the records in a table and encapsulate all the required relationships. The field values are represented as properties. Therefore a data table is merely represented by a collection of persistent objects. With eXpress Persistent Objects you will never have to deal with table mapping - all you need to do is to define persistent object classes, and XPO will automatically generate a database for them.
When creating a persistent object by deriving from the XPBaseObject, XPCustomObject or XPObject class, an OptimisticLockingAttribute is automatically applied to it. This attribute specifies whether a session can lock a persistent object's state (allows optimistic locking to be enabled).
For more information, Optimistic Concurrency.
- XPO Classes Comparison
- Create a Persistent Object
- Saving Persistent Objects
- Deleting Persistent Objects
- Validating Objects
- Basics of Creating Persistent Objects for Existing Data Tables
- Generating Persistent Objects for Existing Data Tables
- How to: Create an Aggregated Object
- How to: Handle Persistent Object Initialization
- How to: Prevent Changes in a Persistent Object from being Automatically Committed