예제 #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
파일: MsgD.cs 프로젝트: erdincay/db4o
		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
파일: Msg.cs 프로젝트: masroore/db4o
 protected Transaction CheckParentTransaction(Transaction
     a_trans, ByteArrayBuffer reader)
 {
     if (reader.ReadByte() == Const4.SystemTrans && a_trans.ParentTransaction() != null)
     {
         return a_trans.ParentTransaction();
     }
     return a_trans;
 }