Skip to main content

TcxSchedulerDBStorage Class

A persistence manager that stores user events and resources in a relational data store.

Declaration

TcxSchedulerDBStorage = class(
    TcxCustomSchedulerStorage
)

Remarks

This class implements the bound event data store mode in the ExpressScheduler Suite. Assign a TcxSchedulerDBStorage component to the Scheduler control’s Storage property to display and manage user events persisted in a dataset bound via the DataSource.DataSet property. Then, you need to map all mandatory properties of user events to the corresponding fields in the underlying dataset via the FieldNames property.

The TcxSchedulerDBStorage class provides the following members that allow you to:

  • Access individual resources and their settings (Resources);

  • Specify the data sources for the persistence manager and resource container (DataSource and Resources.DataSource);

  • Associate the persistence manager with a holidays storage component (Holidays);

  • Map persisted event properties to the corresponding dataset fields that actually store their values (FieldNames);

  • Define and map custom fields for storing additional information in user events (CustomFields);

  • Check if the persistence manager is ready to provide the user event management functionality to the associated Scheduler control (CheckRequiredFields);

  • Toggle the optimized dataset records refresh mode (SmartRefresh);

  • Improve the application performance when performing multiple event changes (BeginUpdate and EndUpdate);

  • Create new empty user events (createEvent);

  • Post all pending new events (PostEvents);

  • Access individual stored events (Events);

  • Delete all stored user events (Clear).

The Scheduler control’s Storage property references a TcxSchedulerDBStorage class instance as a TcxCustomSchedulerStorage object.

See Also