Changeset 279 for branches/web/UDatabase.pas
- Timestamp:
- Mar 5, 2010, 8:52:50 PM (15 years ago)
- Location:
- branches/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/web
- Property svn:ignore
-
old new 3 3 *.o 4 4 backup 5 6 5 index.cgi 7 8 6 index.compiled 9 10 7 UConfig.pas 8 bin
-
- Property svn:ignore
-
branches/web/UDatabase.pas
r158 r279 20 20 FDatabase: TDatabase; 21 21 FId: Integer; 22 FRow: TAssoc Array;23 procedure WriteProperty(Instance: TDbObject; PropInfo: PPropInfo; Data: TAssoc Array; Depth: Integer);22 FRow: TAssociativeArray; 23 procedure WriteProperty(Instance: TDbObject; PropInfo: PPropInfo; Data: TAssociativeArray; Depth: Integer); 24 24 procedure DeleteProperty(Instance: TDbObject; PropInfo: PPropInfo); 25 25 procedure DestroyProperty(Instance: TDbObject; PropInfo: PPropInfo; Depth: Integer); 26 procedure ReadProperty(Instance: TObject; PropInfo: PPropInfo; Data: TAssoc Array; Depth: Integer);26 procedure ReadProperty(Instance: TObject; PropInfo: PPropInfo; Data: TAssociativeArray; Depth: Integer); 27 27 function SearchPropertyByPointer(P: Pointer): string; 28 28 public … … 33 33 procedure LoadById(Id: Integer; Depth: Integer = 1); 34 34 procedure Load(Depth: Integer = 1); 35 procedure LoadFromRow(Row: TAssoc Array; Depth: Integer = 1);35 procedure LoadFromRow(Row: TAssociativeArray; Depth: Integer = 1); 36 36 destructor Destroy(Depth: Integer = 100); virtual; 37 37 property Database: TDatabase read FDatabase write FDatabase; … … 126 126 { TDbObject } 127 127 128 procedure TDbObject.WriteProperty(Instance: TDbObject; PropInfo: PPropInfo; Data: TAssoc Array; Depth: Integer);128 procedure TDbObject.WriteProperty(Instance: TDbObject; PropInfo: PPropInfo; Data: TAssociativeArray; Depth: Integer); 129 129 var 130 130 PropType: PTypeInfo; … … 259 259 260 260 261 procedure TDbObject.ReadProperty(Instance: TObject; PropInfo: PPropInfo; Data: TAssoc Array; Depth: Integer);261 procedure TDbObject.ReadProperty(Instance: TObject; PropInfo: PPropInfo; Data: TAssociativeArray; Depth: Integer); 262 262 const 263 263 NilMethod: TMethod = (Code: nil; Data: nil); … … 434 434 procedure TDbObject.Store(Depth: Integer = 1); 435 435 var 436 Data: TAssoc Array;436 Data: TAssociativeArray; 437 437 I, Count: Integer; 438 438 PropInfo: PPropInfo; … … 442 442 LogMessage('Write class: ' + Self.ClassName); 443 443 if Depth >= 0 then begin 444 Data := TAssoc Array.Create;444 Data := TAssociativeArray.Create; 445 445 if Self.ClassInfo = nil then raise Exception.Create('Trida '+Self.ClassName+' neposkytuje RTTI informace!'); 446 446 Count := GetTypeData(Self.ClassInfo)^.PropCount; … … 585 585 var 586 586 I: Integer; 587 Data: TAssoc Array;587 Data: TAssociativeArray; 588 588 begin 589 589 if Depth >= 0 then begin … … 592 592 FDatabase.Delete(Self.ClassName, 'ListId='+IntToStr(FId)); 593 593 if Self.ClassName = 'tmeasurepointsetlist' then LogMessage('d'); 594 Data := TAssoc Array.Create;594 Data := TAssociativeArray.Create; 595 595 Data.AddKeyValue('ListId', IntToStr(FId)); 596 596 Data.AddKeyValue('ItemId', '0'); … … 617 617 begin 618 618 inherited; 619 inherited OnError := HandleError;620 619 end; 621 620 … … 626 625 end; 627 626 628 procedure TDbObject.LoadFromRow(Row: TAssoc Array; Depth: Integer = 1);627 procedure TDbObject.LoadFromRow(Row: TAssociativeArray; Depth: Integer = 1); 629 628 var 630 629 I, Count: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.