/// <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 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(); } }
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); } }
/// <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); } }
/// <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); } }