コード例 #1
0
        public virtual void ReadVirtualAttributes(ObjectReferenceContext context)
        {
            ITraverseAspectCommand command = new _MarshallingInfoTraverseAspectCommand_398(context
                                                                                           , EnsureFieldList(context));

            TraverseAllAspects(context, command);
        }
コード例 #2
0
 public virtual void ReadVirtualAttribute(ObjectReferenceContext context)
 {
     if (!context.Transaction().SupportsVirtualFields())
     {
         IncrementOffset(context);
         return;
     }
     Instantiate1(context);
 }
コード例 #3
0
ファイル: TranslatedAspect.cs プロジェクト: danfma/db4o-net
        public object Construct(ObjectReferenceContext context)
        {
            ContextState contextState  = context.SaveState();
            bool         fieldHasValue = ContainingClass().SeekToField(context, this);

            try
            {
                return(((IObjectConstructor)_translator).OnInstantiate(context.Container(), fieldHasValue
                                         ? Read(context) : null));
            }
            finally
            {
                context.RestoreState(contextState);
            }
        }
コード例 #4
0
        internal override void Instantiate1(ObjectReferenceContext context)
        {
            int                 dbID      = context.ReadInt();
            Transaction         trans     = context.Transaction();
            ObjectContainerBase container = trans.Container();

            container.ShowInternalClasses(true);
            try
            {
                Db4oDatabase db = (Db4oDatabase)container.GetByID2(trans, dbID);
                if (db != null && db.i_signature == null)
                {
                    container.Activate(trans, db, new FixedActivationDepth(2));
                }
                VirtualAttributes va = context.ObjectReference().VirtualAttributes();
                va.i_database = db;
                va.i_uuid     = context.ReadLong();
            }
            finally
            {
                container.ShowInternalClasses(false);
            }
        }
コード例 #5
0
 internal abstract void Instantiate1(ObjectReferenceContext context);
コード例 #6
0
 public _MarshallingInfoTraverseAspectCommand_398(ObjectReferenceContext context,
                                                  IMarshallingInfo baseArg1) : base(baseArg1)
 {
     this.context = context;
 }
コード例 #7
0
 public virtual void ReadVirtualAttributes(ObjectReferenceContext context)
 {
 }
コード例 #8
0
 internal override void Instantiate1(ObjectReferenceContext context)
 {
 }
コード例 #9
0
 internal override void Instantiate1(ObjectReferenceContext context)
 {
     context.ObjectReference().VirtualAttributes().i_version = context.ReadLong();
 }