Beispiel #1
0
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public virtual void Delete(IDeleteContext context)
        {
            int payLoadOffset = context.ReadInt();

            if (context.IsLegacyHandlerVersion())
            {
                context.DefragmentRecommended();
                return;
            }
            if (payLoadOffset <= 0)
            {
                return;
            }
            int linkOffset = context.Offset();

            context.Seek(payLoadOffset);
            int           classMetadataID = context.ReadInt();
            ITypeHandler4 typeHandler     = Container().ClassMetadataForID(classMetadataID).TypeHandler
                                                ();

            if (typeHandler != null)
            {
                if (!IsPlainObject(typeHandler))
                {
                    context.Delete(typeHandler);
                }
            }
            context.Seek(linkOffset);
        }
Beispiel #2
0
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		public virtual void Delete(IDeleteContext context)
		{
			int payLoadOffset = context.ReadInt();
			if (context.IsLegacyHandlerVersion())
			{
				context.DefragmentRecommended();
				return;
			}
			if (payLoadOffset <= 0)
			{
				return;
			}
			int linkOffset = context.Offset();
			context.Seek(payLoadOffset);
			int classMetadataID = context.ReadInt();
			ITypeHandler4 typeHandler = Container().ClassMetadataForID(classMetadataID).TypeHandler
				();
			if (typeHandler != null)
			{
				if (!IsPlainObject(typeHandler))
				{
					context.Delete(typeHandler);
				}
			}
			context.Seek(linkOffset);
		}
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public override void Delete(IDeleteContext context)
 {
     if (context.IsLegacyHandlerVersion())
     {
         context.ReadInt();
         context.DefragmentRecommended();
     }
 }
Beispiel #4
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public override void Delete(IDeleteContext context)
 {
     if (context.IsLegacyHandlerVersion())
     {
         context.ReadInt();
         context.DefragmentRecommended();
     }
 }