namespace WinFormsApplication7; interface uses RemObjects.DataAbstract.Server, System.Collections.Generic, System.ComponentModel, System.Linq, System.Text, System.Threading; type DomainBusinessProcessor = public class private FInternalProcessor: BusinessProcessor; protected method HandleBeforeProcessDelta(sender: BusinessProcessor; e: DeltaEventArgs); virtual; method HandleAfterProcessDelta(sender: BusinessProcessor; e: DeltaEventArgs); virtual; method HandleBeforeProcessChange(sender: BusinessProcessor; e: DeltaChangeEventArgs); virtual; method HandleAfterProcessChange(sender: BusinessProcessor; e: DeltaChangeEventArgs); virtual; method HandleAfterSqlGeneration(sender: BusinessProcessor; e: SqlGenerationEventArgs); virtual; method HandleProcessError(sender: BusinessProcessor; e: DeltaChangeErrorEventArgs); virtual; method HandleBeforeExecuteCommand(sender: BusinessProcessor; e: ExecuteCommandArgs); virtual; method HandleAfterExecuteCommand(sender: BusinessProcessor; e: ExecuteCommandArgs); virtual; method HandleBeforeGetTableData(e: BeforeGetTableDataEventArgs); virtual; public constructor(AContainer: IContainer); property UpdateCommandName: string read FInternalProcessor.UpdateCommandName write FInternalProcessor.UpdateCommandName; property InsertCommandName: string read FInternalProcessor.InsertCommandName write FInternalProcessor.InsertCommandName; property DeleteCommandName: string read FInternalProcessor.DeleteCommandName write FInternalProcessor.DeleteCommandName; property RefreshDataTableName: string read FInternalProcessor.RefreshDataTableName write FInternalProcessor.RefreshDataTableName; property ReferencedDataTable: string read FInternalProcessor.ReferencedDataTable write FInternalProcessor.ReferencedDataTable; property AutoGenerateInsert: boolean read FInternalProcessor.AutoGenerateInsert write FInternalProcessor.AutoGenerateInsert; property AutoGenerateUpdate: boolean read FInternalProcessor.AutoGenerateUpdate write FInternalProcessor.AutoGenerateUpdate; property AutoGenerateDelete: boolean read FInternalProcessor.AutoGenerateDelete write FInternalProcessor.AutoGenerateDelete; property AutoGenerateRefresh: boolean read FInternalProcessor.AutoGenerateRefresh write FInternalProcessor.AutoGenerateRefresh; property PrepareCommands: boolean read FInternalProcessor.PrepareCommands write FInternalProcessor.PrepareCommands; property IgnoreAffectedRows: boolean read FInternalProcessor.IgnoreAffectedRows write FInternalProcessor.IgnoreAffectedRows; property UpdateMode: UpdateMode read FInternalProcessor.UpdateMode write FInternalProcessor.UpdateMode; end; implementation constructor DomainBusinessProcessor(AContainer: IContainer); begin FInternalProcessor := new BusinessProcessor(AContainer); FInternalProcessor.BeforeProcessDelta += HandleBeforeProcessDelta; FInternalProcessor.AfterProcessDelta += HandleAfterProcessDelta; FInternalProcessor.BeforeProcessChange += HandleBeforeProcessChange; FInternalProcessor.AfterProcessChange += HandleAfterProcessChange; FInternalProcessor.AfterSqlGeneration += HandleAfterSqlGeneration; FInternalProcessor.ProcessError += HandleProcessError; FInternalProcessor.BeforeExecuteCommand += HandleBeforeExecuteCommand; FInternalProcessor.AfterExecuteCommand += HandleAfterExecuteCommand; FInternalProcessor.BeforeGetTableData += HandleBeforeGetTableData; end; method DomainBusinessProcessor.HandleBeforeProcessDelta(sender: BusinessProcessor; e: DeltaEventArgs); begin end; method DomainBusinessProcessor.HandleAfterProcessDelta(sender: BusinessProcessor; e: DeltaEventArgs); begin end; method DomainBusinessProcessor.HandleBeforeProcessChange(sender: BusinessProcessor; e: DeltaChangeEventArgs); begin end; method DomainBusinessProcessor.HandleAfterProcessChange(sender: BusinessProcessor; e: DeltaChangeEventArgs); begin end; method DomainBusinessProcessor.HandleAfterSqlGeneration(sender: BusinessProcessor; e: SqlGenerationEventArgs); begin end; method DomainBusinessProcessor.HandleProcessError(sender: BusinessProcessor; e: DeltaChangeErrorEventArgs); begin end; method DomainBusinessProcessor.HandleBeforeExecuteCommand(sender: BusinessProcessor; e: ExecuteCommandArgs); begin end; method DomainBusinessProcessor.HandleAfterExecuteCommand(sender: BusinessProcessor; e: ExecuteCommandArgs); begin end; method DomainBusinessProcessor.HandleBeforeGetTableData(e: BeforeGetTableDataEventArgs); begin end; end.