2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.Common / DbCommandSet.cs
1 //
2 // System.Data.Common.DbCommandSet
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
9
10 #if NET_1_2
11
12 using System.ComponentModel;
13 using System.Data;
14
15 namespace System.Data.Common {
16         public abstract class DbCommandSet : IDisposable
17         {
18                 #region Constructors
19
20                 protected DbCommandSet ()
21                 {
22                 }
23
24                 #endregion // Constructors
25
26                 #region Properties
27
28                 public abstract int CommandCount { get; }
29                 public abstract int CommandTimeout { get; set; }
30
31                 public DbConnection Connection {
32                         get { return DbConnection; }
33                         set { DbConnection = value; }
34                 }
35
36                 protected abstract DbConnection DbConnection { get; set; }
37                 protected abstract DbTransaction DbTransaction { get; set; }
38
39                 public DbTransaction Transaction {
40                         get { return DbTransaction; }
41                 }
42
43                 #endregion // Properties
44
45                 #region Methods
46
47                 public abstract void Append (DbCommand command);
48                 public abstract void Cancel ();
49                 public abstract void Clear ();
50                 public abstract void CopyToParameter (int commandIndex, int parameterIndex, DbParameter destination);
51                 public abstract void CopyToParameter (int commandIndex, string parameterName, DbParameter destination);
52                 public abstract void CopyToParameterCollection (int commandIndex, DbParameterCollection destination);
53                 public abstract void Dispose ();
54                 public abstract DbDataReader ExecuteDbDataReader (CommandBehavior behavior);
55                 public abstract int ExecuteNonQuery ();
56
57                 [MonoTODO]
58                 public DbDataReader ExecuteReader ()
59                 {
60                         throw new NotImplementedException ();
61                 }
62
63                 [MonoTODO]
64                 public DbDataReader ExecuteReader (CommandBehavior behavior)
65                 {
66                         throw new NotImplementedException ();
67                 }
68
69                 public abstract int GetParameterCount (int commandIndex);
70                 
71                 #endregion // Methods
72
73         }
74 }
75
76 #endif