The IDatabaseObject type exposes the following members.

Methods

  Name Description
Public method LoadFields
This subroutine should copy the database fields from objFields to the object's variables. objFields is populated with all of the fields from the associated record.
Public method SaveFields
Should return an SQLFieldValues object populated with the fields to be written to the database. The first argument of the SQLFieldValues.Add function is the database field name, the second is the field's value.

Properties

  Name Description
Public property DistinctValue
Should return the distinct value that uniquely identifies this object in the database. If a new object is saved (which uses an auto increment field) or an existing object is loaded then this property is automatically set by the library. Typically, this is the value of an identity or auto increment database field.
Public property IsSaved
Should return whether the object has been saved to the database. Generally, this is implemented using a private variable that stores the object's saved state. If a new object is saved or an existing object is loaded then this property is automatically set to true by the library.

See Also