示例#1
0
 public virtual Db4objects.Db4o.Internal.VirtualAttributes VirtualAttributes(Db4objects.Db4o.Internal.Transaction
                                                                             trans, bool lastCommitted)
 {
     if (trans == null)
     {
         return(_virtualAttributes);
     }
     lock (trans.Container().Lock())
     {
         if (_virtualAttributes == null)
         {
             if (_class.HasVirtualAttributes())
             {
                 _virtualAttributes = new Db4objects.Db4o.Internal.VirtualAttributes();
                 _class.ReadVirtualAttributes(trans, this, lastCommitted);
             }
         }
         else
         {
             if (!_virtualAttributes.SuppliesUUID())
             {
                 if (_class.HasVirtualAttributes())
                 {
                     _class.ReadVirtualAttributes(trans, this, lastCommitted);
                 }
             }
         }
         return(_virtualAttributes);
     }
 }