unit schIdiomasServer_Intf; interface uses Classes, DB, SysUtils, uROClasses, uDADataTable, uDABusinessProcessor, FmtBCD, uROXMLIntf, schIdiomasClient_Intf; const { Delta rules ids Feel free to change them to something more human readable but make sure they are unique in the context of your application } RID_IdiomasDelta = '{821798BF-142D-4451-88D3-550EBABD7BC3}'; type { IIdiomasDelta } IIdiomasDelta = interface(IIdiomas) ['{821798BF-142D-4451-88D3-550EBABD7BC3}'] { Property getters and setters } function GetOldIDValue : Integer; function GetOldISOValue : String; function GetOldDESCRIPCIONValue : String; { Properties } property OldID : Integer read GetOldIDValue; property OldISO : String read GetOldISOValue; property OldDESCRIPCION : String read GetOldDESCRIPCIONValue; end; { TIdiomasBusinessProcessorRules } TIdiomasBusinessProcessorRules = class(TDABusinessProcessorRules, IIdiomas, IIdiomasDelta) private protected { Property getters and setters } function GetIDValue: Integer; virtual; function GetIDIsNull: Boolean; virtual; function GetOldIDValue: Integer; virtual; function GetOldIDIsNull: Boolean; virtual; procedure SetIDValue(const aValue: Integer); virtual; procedure SetIDIsNull(const aValue: Boolean); virtual; function GetISOValue: String; virtual; function GetISOIsNull: Boolean; virtual; function GetOldISOValue: String; virtual; function GetOldISOIsNull: Boolean; virtual; procedure SetISOValue(const aValue: String); virtual; procedure SetISOIsNull(const aValue: Boolean); virtual; function GetDESCRIPCIONValue: String; virtual; function GetDESCRIPCIONIsNull: Boolean; virtual; function GetOldDESCRIPCIONValue: String; virtual; function GetOldDESCRIPCIONIsNull: Boolean; virtual; procedure SetDESCRIPCIONValue(const aValue: String); virtual; procedure SetDESCRIPCIONIsNull(const aValue: Boolean); virtual; { Properties } property ID : Integer read GetIDValue write SetIDValue; property IDIsNull : Boolean read GetIDIsNull write SetIDIsNull; property OldID : Integer read GetOldIDValue; property OldIDIsNull : Boolean read GetOldIDIsNull; property ISO : String read GetISOValue write SetISOValue; property ISOIsNull : Boolean read GetISOIsNull write SetISOIsNull; property OldISO : String read GetOldISOValue; property OldISOIsNull : Boolean read GetOldISOIsNull; property DESCRIPCION : String read GetDESCRIPCIONValue write SetDESCRIPCIONValue; property DESCRIPCIONIsNull : Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull; property OldDESCRIPCION : String read GetOldDESCRIPCIONValue; property OldDESCRIPCIONIsNull : Boolean read GetOldDESCRIPCIONIsNull; public constructor Create(aBusinessProcessor: TDABusinessProcessor); override; destructor Destroy; override; end; implementation uses Variants, uROBinaryHelpers, uDAInterfaces; { TIdiomasBusinessProcessorRules } constructor TIdiomasBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor); begin inherited; end; destructor TIdiomasBusinessProcessorRules.Destroy; begin inherited; end; function TIdiomasBusinessProcessorRules.GetIDValue: Integer; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasID]; end; function TIdiomasBusinessProcessorRules.GetIDIsNull: Boolean; begin result := VarIsNull(BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasID]); end; function TIdiomasBusinessProcessorRules.GetOldIDValue: Integer; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_IdiomasID]; end; function TIdiomasBusinessProcessorRules.GetOldIDIsNull: Boolean; begin result := VarIsNull(BusinessProcessor.CurrentChange.OldValueByName[fld_IdiomasID]); end; procedure TIdiomasBusinessProcessorRules.SetIDValue(const aValue: Integer); begin BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasID] := aValue; end; procedure TIdiomasBusinessProcessorRules.SetIDIsNull(const aValue: Boolean); begin if aValue then BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasID] := Null; end; function TIdiomasBusinessProcessorRules.GetISOValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasISO]; end; function TIdiomasBusinessProcessorRules.GetISOIsNull: Boolean; begin result := VarIsNull(BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasISO]); end; function TIdiomasBusinessProcessorRules.GetOldISOValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_IdiomasISO]; end; function TIdiomasBusinessProcessorRules.GetOldISOIsNull: Boolean; begin result := VarIsNull(BusinessProcessor.CurrentChange.OldValueByName[fld_IdiomasISO]); end; procedure TIdiomasBusinessProcessorRules.SetISOValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasISO] := aValue; end; procedure TIdiomasBusinessProcessorRules.SetISOIsNull(const aValue: Boolean); begin if aValue then BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasISO] := Null; end; function TIdiomasBusinessProcessorRules.GetDESCRIPCIONValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasDESCRIPCION]; end; function TIdiomasBusinessProcessorRules.GetDESCRIPCIONIsNull: Boolean; begin result := VarIsNull(BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasDESCRIPCION]); end; function TIdiomasBusinessProcessorRules.GetOldDESCRIPCIONValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_IdiomasDESCRIPCION]; end; function TIdiomasBusinessProcessorRules.GetOldDESCRIPCIONIsNull: Boolean; begin result := VarIsNull(BusinessProcessor.CurrentChange.OldValueByName[fld_IdiomasDESCRIPCION]); end; procedure TIdiomasBusinessProcessorRules.SetDESCRIPCIONValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasDESCRIPCION] := aValue; end; procedure TIdiomasBusinessProcessorRules.SetDESCRIPCIONIsNull(const aValue: Boolean); begin if aValue then BusinessProcessor.CurrentChange.NewValueByName[fld_IdiomasDESCRIPCION] := Null; end; initialization RegisterBusinessProcessorRules(RID_IdiomasDelta, TIdiomasBusinessProcessorRules); end.