DbConnectionFactory.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // System.Data.ProviderBase.DbConnectionFactory
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. #if NET_1_2
  10. using System.Data.Common;
  11. namespace System.Data.ProviderBase {
  12. public abstract class DbConnectionFactory
  13. {
  14. #region Fields
  15. #endregion // Fields
  16. #region Constructors
  17. [MonoTODO]
  18. protected DbConnectionFactory ()
  19. {
  20. }
  21. [MonoTODO]
  22. protected DbConnectionFactory (DbConnectionPoolCounters performanceCounters)
  23. {
  24. }
  25. #endregion // Constructors
  26. #region Properties
  27. public abstract DbProviderFactory ProviderFactory { get; }
  28. #endregion // Properties
  29. #region Methods
  30. [MonoTODO]
  31. protected virtual IAsyncResult BeginCreateConnection (DbConnectionBase owningObject, DbConnectionString connectionOptions, DbConnectionInternal connection, AsyncCallback callback, object asyncStateObject)
  32. {
  33. throw new NotImplementedException ();
  34. }
  35. [MonoTODO]
  36. public void ClearAllPools ()
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. [MonoTODO]
  41. public void ClearPool (DbConnectionBase connection)
  42. {
  43. throw new NotImplementedException ();
  44. }
  45. protected abstract DbConnectionInternal CreateConnection (DbConnectionString options, DbConnectionBase owningObject);
  46. protected abstract DbConnectionString CreateConnectionOptions (string connectionString);
  47. protected abstract DbConnectionPoolOptions CreateConnectionPoolOptions (DbConnectionString options);
  48. [MonoTODO]
  49. protected virtual DbMetaDataFactory CreateMetaDataFactory (DbConnectionInternal internalConnection)
  50. {
  51. throw new NotImplementedException ();
  52. }
  53. [MonoTODO]
  54. protected virtual DbConnectionInternal EndCreateConnection (IAsyncResult asyncResult)
  55. {
  56. throw new NotImplementedException ();
  57. }
  58. [MonoTODO]
  59. protected internal DbMetaDataFactory GetMetaDataFactory (DbConnectionString connectionOptions, DbConnectionInternal internalConnection)
  60. {
  61. throw new NotImplementedException ();
  62. }
  63. [MonoTODO]
  64. public void SetConnectionPoolOptions (string connectionString, DbConnectionPoolOptions poolOptions)
  65. {
  66. throw new NotImplementedException ();
  67. }
  68. #endregion // Methods
  69. }
  70. }
  71. #endif