예제 #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);
        }
예제 #3
0
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public virtual void Delete(IDeleteContext context)
        {
            InvalidBigSet(context);
            var id = context.ReadInt();

            FreeBTree(context, id);
        }
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public override void Delete(IDeleteContext context)
 {
     if (context.IsLegacyHandlerVersion())
     {
         context.ReadInt();
         context.DefragmentRecommended();
     }
 }
예제 #5
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public override void Delete(IDeleteContext context)
 {
     if (context.IsLegacyHandlerVersion())
     {
         context.ReadInt();
         context.DefragmentRecommended();
     }
 }
		public virtual void Delete(IDeleteContext context)
		{
			if (!context.CascadeDelete()) return;

			ITypeHandler4 handler = ReadElementTypeHandler(context, context);
			int elementCount = context.ReadInt();
			for (int i = elementCount; i > 0; i--)
			{
				handler.Delete(context);
			}
		}
예제 #7
0
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public virtual void Delete(IDeleteContext context)
        {
            if (!context.CascadeDelete())
            {
                return;
            }
            var handler      = ReadElementTypeHandler(context, context);
            var elementCount = context.ReadInt();

            for (var i = elementCount; i > 0; i--)
            {
                handler.Delete(context);
            }
        }
예제 #8
0
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		public virtual void Delete(IDeleteContext context)
		{
			if (!context.CascadeDelete())
			{
				return;
			}
			KeyValueHandlerPair handlers = ReadKeyValueTypeHandlers(context, context);
			int elementCount = context.ReadInt();
			for (int i = elementCount; i > 0; i--)
			{
				handlers._keyHandler.Delete(context);
				handlers._valueHandler.Delete(context);
			}
		}
예제 #9
0
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public virtual void Delete(IDeleteContext context)
        {
            if (!context.CascadeDelete())
            {
                return;
            }
            KeyValueHandlerPair handlers = ReadKeyValueTypeHandlers(context, context);
            int elementCount             = context.ReadInt();

            for (int i = elementCount; i > 0; i--)
            {
                handlers._keyHandler.Delete(context);
                handlers._valueHandler.Delete(context);
            }
        }
예제 #10
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual void Delete(IDeleteContext context)
 {
     InvalidBigSet(context);
     var id = context.ReadInt();
     FreeBTree(context, id);
 }
예제 #11
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual void Delete(IDeleteContext context)
 {
     if (!context.CascadeDelete())
     {
         return;
     }
     var handler = ReadElementTypeHandler(context, context);
     var elementCount = context.ReadInt();
     for (var i = elementCount; i > 0; i--)
     {
         handler.Delete(context);
     }
 }