2004-04-22 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.ProviderBase / DbConnectionFactory.cs
1 //
2 // System.Data.ProviderBase.DbConnectionFactory
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
9
10 #if NET_2_0
11
12 using System.Data.Common;
13
14 namespace System.Data.ProviderBase {
15         public abstract class DbConnectionFactory 
16         {
17                 #region Fields
18                 
19                 #endregion // Fields
20
21                 #region Constructors
22
23                 [MonoTODO]
24                 protected DbConnectionFactory ()
25                 {
26                 }
27
28                 [MonoTODO]
29                 protected DbConnectionFactory (DbConnectionPoolCounters performanceCounters)
30                 {
31                 }
32                 
33                 #endregion // Constructors
34
35                 #region Properties
36
37                 public abstract DbProviderFactory ProviderFactory { get; }
38
39                 #endregion // Properties
40
41                 #region Methods
42
43                 [MonoTODO]
44                 protected virtual IAsyncResult BeginCreateConnection (DbConnectionBase owningObject, DbConnectionString connectionOptions, DbConnectionInternal connection, AsyncCallback callback, object asyncStateObject)
45                 {
46                         throw new NotImplementedException ();
47                 }
48
49                 [MonoTODO]
50                 public void ClearAllPools ()
51                 {
52                         throw new NotImplementedException ();
53                 }
54
55                 [MonoTODO]
56                 public void ClearPool (DbConnectionBase connection)
57                 {
58                         throw new NotImplementedException ();
59                 }
60
61                 protected abstract DbConnectionInternal CreateConnection (DbConnectionString options, DbConnectionBase owningObject);
62                 protected abstract DbConnectionString CreateConnectionOptions (string connectionString);
63                 protected abstract DbConnectionPoolOptions CreateConnectionPoolOptions (DbConnectionString options);
64
65                 [MonoTODO]
66                 protected virtual DbMetaDataFactory CreateMetaDataFactory (DbConnectionInternal internalConnection)
67                 {
68                         throw new NotImplementedException ();
69                 }
70
71                 [MonoTODO]
72                 protected virtual DbConnectionInternal EndCreateConnection (IAsyncResult asyncResult)
73                 {
74                         throw new NotImplementedException ();
75                 }
76
77                 [MonoTODO]
78                 protected internal DbMetaDataFactory GetMetaDataFactory (DbConnectionString connectionOptions, DbConnectionInternal internalConnection)
79                 {
80                         throw new NotImplementedException ();
81                 }
82
83                 internal DbConnectionString CreateConnectionOptionsInternal (string connectionString)
84                 {
85                         return CreateConnectionOptions (connectionString);
86                 }
87
88                 [MonoTODO]
89                 public void SetConnectionPoolOptions (string connectionString, DbConnectionPoolOptions poolOptions)
90                 {
91                         throw new NotImplementedException ();
92                 }
93
94                 #endregion // Methods
95         }
96 }
97
98 #endif