DbConnectionFactory.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. internal DbConnectionString CreateConnectionOptionsInternal (string connectionString)
  64. {
  65. return CreateConnectionOptions (connectionString);
  66. }
  67. [MonoTODO]
  68. public void SetConnectionPoolOptions (string connectionString, DbConnectionPoolOptions poolOptions)
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. #endregion // Methods
  73. }
  74. }
  75. #endif