예제 #1
0
        /// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public object ReadIndexEntry(IObjectIdContext context)
        {
            IIndexableTypeHandler indexableTypeHandler = (IIndexableTypeHandler)HandlerRegistry
                                                         .CorrectHandlerVersion(context, GetHandler());

            return(indexableTypeHandler.ReadIndexEntry(context));
        }
예제 #2
0
        public override object Read(IObjectIdContext context)
        {
            var objectId = context.ObjectId();
            var version  = context.Transaction().SystemTransaction().VersionForId(objectId);

            return(version);
        }
예제 #3
0
 public virtual object Read(IObjectIdContext context)
 {
     if (!CanReadFromSlot((IAspectVersionContext)context))
     {
         IncrementOffset(context, context);
         return(null);
     }
     return(context.Read(GetHandler()));
 }
예제 #4
0
 /// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual object ReadIndexEntry(IObjectIdContext context)
 {
     var payLoadOffSet = context.ReadInt();
     var length = context.ReadInt();
     if (payLoadOffSet == 0)
     {
         return null;
     }
     return ((StatefulBuffer) context.Buffer()).ReadPayloadWriter(payLoadOffSet, length
         );
 }
예제 #5
0
        /// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public virtual object ReadIndexEntry(IObjectIdContext context)
        {
            int payLoadOffSet = context.ReadInt();
            int length        = context.ReadInt();

            if (payLoadOffSet == 0)
            {
                return(null);
            }
            return(((StatefulBuffer)context.Buffer()).ReadPayloadWriter(payLoadOffSet, length
                                                                        ));
        }
예제 #6
0
 object IIndexableTypeHandler.ReadIndexEntry(IObjectIdContext context)
 {
     return(ReadFrom(context));
 }
예제 #7
0
 /// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public override object ReadIndexEntry(IObjectIdContext context)
 {
     return(context.Transaction().Container().ReadWriterByAddress(context.Transaction(
                                                                      ), context.ReadInt(), context.ReadInt()));
 }
예제 #8
0
		/// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		public override object ReadIndexEntry(IObjectIdContext context)
		{
			return context.Transaction().Container().ReadWriterByAddress(context.Transaction(
				), context.ReadInt(), context.ReadInt());
		}
예제 #9
0
		/// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		public object ReadIndexEntry(IObjectIdContext context)
		{
			IIndexableTypeHandler indexableTypeHandler = (IIndexableTypeHandler)HandlerRegistry
				.CorrectHandlerVersion(context, GetHandler());
			return indexableTypeHandler.ReadIndexEntry(context);
		}
    	public object ReadIndexEntry(IObjectIdContext context)
    	{
    		return ReadFrom(context);
		}
예제 #11
0
 /// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual object ReadIndexEntry(IObjectIdContext context)
 {
     return(Read(context));
 }
예제 #12
0
 public object ReadIndexEntry(IObjectIdContext context)
 {
     return(ReadFrom(context));
 }
		/// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		public virtual object ReadIndexEntry(IObjectIdContext context)
		{
			return Read(context);
		}
예제 #14
0
		public virtual object Read(IObjectIdContext context)
		{
			if (!CanReadFromSlot((IAspectVersionContext)context))
			{
				IncrementOffset(context);
				return null;
			}
			return context.Read(GetHandler());
		}
예제 #15
0
 public sealed override object Read(IObjectIdContext context)
 {
     return(null);
 }
예제 #16
0
 /// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual object ReadIndexEntry(IObjectIdContext context)
 {
     return context.ReadInt();
 }
예제 #17
0
 	public object ReadIndexEntry(IObjectIdContext context)
 	{
 		return new IndexEntry(context.ReadInt(), context.ReadLong());
 	}
예제 #18
0
 public override sealed object Read(IObjectIdContext context)
 {
     return null;
 }
		object IIndexableTypeHandler.ReadIndexEntry(IObjectIdContext context)
		{
			return ReadFrom(context);
		}
예제 #20
0
 public object ReadIndexEntry(IObjectIdContext context)
 {
     return(new IndexEntry(context.ReadInt(), context.ReadLong()));
 }
		public override object Read(IObjectIdContext context)
		{
			int objectId = context.ObjectId();
			long version = context.Transaction().SystemTransaction().VersionForId(objectId);
			return version;
		}