예제 #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);
        }
예제 #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();
     }
 }
예제 #4
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public override void Delete(IDeleteContext context)
 {
     if (context.IsLegacyHandlerVersion())
     {
         context.ReadInt();
         context.DefragmentRecommended();
     }
 }