Diff of /lib/ObjectModel/Collection.pm [59db3c] .. [7908f1]  Maximize  Restore

Switch to side-by-side view

--- a/lib/ObjectModel/Collection.pm
+++ b/lib/ObjectModel/Collection.pm
@@ -117,7 +117,7 @@
 {
   my $self = shift;
 
-  $ActiveBackEnd->LoadCollection($self);
+  $self->GetBackEnd()->LoadCollection($self);
 
   $self->{Loaded} = 1;
 }
@@ -167,7 +167,7 @@
 
   if (! exists($self->{Items}{$Key}))
   {
-    my $NewItem = $ActiveBackEnd->LoadItem($self, $Key);
+    my $NewItem = $self->GetBackEnd()->LoadItem($self, $Key);
     if (defined($NewItem))
     {
       $self->{Items}{$NewItem->GetKey()} = $NewItem;
@@ -269,7 +269,7 @@
         }
         if (! $HasSequenceKey)
         {
-          my $ExistingItem = $ActiveBackEnd->LoadItem($self, $Item->GetKey());
+          my $ExistingItem = $self->GetBackEnd()->LoadItem($self, $Item->GetKey());
           if (defined($ExistingItem))
           {
             $ErrMessage = $self->GetItemName() . $ErrMessage .
@@ -288,7 +288,7 @@
 {
   my $self = shift;
 
-  $ActiveBackEnd->SaveCollection($self);
+  $self->GetBackEnd()->SaveCollection($self);
 
   foreach my $PropertyDescriptor (@{$self->GetPropertyDescriptors()})
   {
@@ -371,7 +371,7 @@
     return $ErrMessage;
   }
   my $Key = $Item->GetKey();
-  $ErrMessage = $ActiveBackEnd->DeleteItem($Item);
+  $ErrMessage = $self->GetBackEnd()->DeleteItem($Item);
   if (defined($ErrMessage))
   {
     return $ErrMessage;
@@ -402,7 +402,7 @@
     }
   }
 
-  my $ErrMessage = $ActiveBackEnd->DeleteAll($self);
+  my $ErrMessage = $self->GetBackEnd()->DeleteAll($self);
   if (defined($ErrMessage))
   {
     return $ErrMessage;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks