Пример #1
0
 protected Db4objects.Db4o.Internal.Transaction CheckParentTransaction(Db4objects.Db4o.Internal.Transaction
                                                                       a_trans, ByteArrayBuffer reader)
 {
     if (reader.ReadByte() == Const4.SystemTrans && a_trans.ParentTransaction() != null)
     {
         return(a_trans.ParentTransaction());
     }
     return(a_trans);
 }
Пример #2
0
		public Db4objects.Db4o.CS.Internal.Messages.MsgD GetWriterForLength(Transaction trans
			, int length)
		{
			Db4objects.Db4o.CS.Internal.Messages.MsgD message = (Db4objects.Db4o.CS.Internal.Messages.MsgD
				)PublicClone();
			message.SetTransaction(trans);
			message._payLoad = new StatefulBuffer(trans, length + Const4.MessageLength);
			message.WriteInt(_msgID);
			message.WriteInt(length);
			if (trans.ParentTransaction() == null)
			{
				message._payLoad.WriteByte(Const4.SystemTrans);
			}
			else
			{
				message._payLoad.WriteByte(Const4.UserTrans);
			}
			return message;
		}
Пример #3
0
 protected Transaction CheckParentTransaction(Transaction
     a_trans, ByteArrayBuffer reader)
 {
     if (reader.ReadByte() == Const4.SystemTrans && a_trans.ParentTransaction() != null)
     {
         return a_trans.ParentTransaction();
     }
     return a_trans;
 }