Add new DB2 provider from Victor
[mono.git] / mcs / class / IBM.Data.DB2 / IBM.Data.DB2 / BLOBWrapperCollection.cs
1 using System;
2 using System.Collections;
3
4 namespace IBM.Data.DB2{
5         public class BLOBWrapperCollection{
6
7                 private Hashtable _blobs = new Hashtable();
8                 
9                 public void Add(int ColumnNumber){
10                         BLOBWrapper _blob = new BLOBWrapper();
11                         _blobs.Add(ColumnNumber, _blob);
12                 }
13                 
14                 public BLOBWrapper this[int index]{
15                         get{
16                                 return (BLOBWrapper)_blobs[index];
17                         }
18                 }
19                 
20                 public long GetBytes(int col, long fieldOffset, byte[] buffer, int bufferOffset, int length){
21                         BLOBWrapper _blob = (BLOBWrapper)_blobs[col];
22                         return _blob.GetBytes(fieldOffset, buffer, bufferOffset, length);
23                 }
24         }
25 }