Ejemplo n.º 1
0
        public virtual object CreateDefault(Transaction a_trans)
        {
            BlobImpl bi = null;

            bi = (BlobImpl)this.MemberwiseClone();
            bi.SetTrans(a_trans);
            return(bi);
        }
Ejemplo n.º 2
0
		public virtual void DeleteBlobFile(Transaction trans, BlobImpl blob)
		{
			MDeleteBlobFile msg = (MDeleteBlobFile)Msg.DeleteBlobFile.GetWriterForInt(trans, 
				(int)GetID(blob));
			WriteMsg(msg, false);
		}
Ejemplo n.º 3
0
		/// <exception cref="System.IO.IOException"></exception>
		public virtual void ReadBlobFrom(Transaction trans, BlobImpl blob)
		{
			MsgBlob msg = null;
			lock (Lock())
			{
				Store(blob);
				int id = (int)GetID(blob);
				msg = (MsgBlob)Msg.WriteBlob.GetWriterForInt(trans, id);
				msg._blob = blob;
				blob.SetStatus(Status.Queued);
			}
			ProcessBlobMessage(msg);
		}
Ejemplo n.º 4
0
		/// <exception cref="System.IO.IOException"></exception>
		public virtual void WriteBlobTo(Transaction trans, BlobImpl blob)
		{
			MsgBlob msg = (MsgBlob)Msg.ReadBlob.GetWriterForInt(trans, (int)GetID(blob));
			msg._blob = blob;
			ProcessBlobMessage(msg);
		}