WX5.DB.Core.DBProvider Class Reference

Base class for all of providers. More...

Inheritance diagram for WX5.DB.Core.DBProvider:
WX5.DB.Core.Imp.MSSQLDBProvider WX5.DB.Core.Imp.ODBCDBProvider WX5.DB.Core.Imp.OLEDBProvider

List of all members.

Public Member Functions

abstract IDbConnection CreateConnection ()
 Creates a Connection object.
abstract IDbCommand CreateCommand ()
 Creates a Command object.
abstract IDbDataAdapter CreateAdapter ()
 Creates an Adapter object.
abstract void RunAdapterFill (IDbDataAdapter da, DataTable tbl)
 Calls adapter's Fill() method.
abstract void RunAdapterUpdate (IDbDataAdapter da, DataTable tbl)
 Calls adapter's Update() method.
 DBProvider ()
 Constructs an instance of DBProvider object.
virtual DBProvider Init ()
 Initializes fields of DBProvider object.
virtual DBProvider SetParameters (IDbCommand cmd, params object[] args)
 Sets parameter values using args list in the natural order.
virtual List< object > GetParameters (IDbCommand cmd)
 Creates and returns a list of current IDbCommand parameter values.

Public Attributes

IDbConnection _Connection
IDbCommand _Cmd
IDbCommand _Upd
IDbCommand _Ins
IDbCommand _Del
IDbCommand _Sel
IDbDataAdapter _DA

Detailed Description

Base class for all of providers.


Constructor & Destructor Documentation

WX5.DB.Core.DBProvider.DBProvider (  ) 

Constructs an instance of DBProvider object.


Member Function Documentation

abstract IDbDataAdapter WX5.DB.Core.DBProvider.CreateAdapter (  )  [pure virtual]

Creates an Adapter object.

Returns:
IDbDataAdapter object

Implemented in WX5.DB.Core.Imp.MSSQLDBProvider, WX5.DB.Core.Imp.ODBCDBProvider, and WX5.DB.Core.Imp.OLEDBProvider.

abstract IDbCommand WX5.DB.Core.DBProvider.CreateCommand (  )  [pure virtual]

Creates a Command object.

Returns:
IDbCommand object

Implemented in WX5.DB.Core.Imp.MSSQLDBProvider, WX5.DB.Core.Imp.ODBCDBProvider, and WX5.DB.Core.Imp.OLEDBProvider.

abstract IDbConnection WX5.DB.Core.DBProvider.CreateConnection (  )  [pure virtual]

Creates a Connection object.

Returns:
IDbConnection object

Implemented in WX5.DB.Core.Imp.MSSQLDBProvider, WX5.DB.Core.Imp.ODBCDBProvider, and WX5.DB.Core.Imp.OLEDBProvider.

virtual List<object> WX5.DB.Core.DBProvider.GetParameters ( IDbCommand  cmd  )  [virtual]

Creates and returns a list of current IDbCommand parameter values.

Parameters:
cmd IDbCommand object
Returns:
a list of object's parameter values
virtual DBProvider WX5.DB.Core.DBProvider.Init (  )  [virtual]

Initializes fields of DBProvider object.

Returns:
this instance
abstract void WX5.DB.Core.DBProvider.RunAdapterFill ( IDbDataAdapter  da,
DataTable  tbl 
) [pure virtual]

Calls adapter's Fill() method.

Parameters:
da data adapter
tbl table to be filled

Implemented in WX5.DB.Core.Imp.MSSQLDBProvider, WX5.DB.Core.Imp.ODBCDBProvider, and WX5.DB.Core.Imp.OLEDBProvider.

abstract void WX5.DB.Core.DBProvider.RunAdapterUpdate ( IDbDataAdapter  da,
DataTable  tbl 
) [pure virtual]

Calls adapter's Update() method.

Parameters:
da data adapter
tbl table to be updated

Implemented in WX5.DB.Core.Imp.MSSQLDBProvider, WX5.DB.Core.Imp.ODBCDBProvider, and WX5.DB.Core.Imp.OLEDBProvider.

virtual DBProvider WX5.DB.Core.DBProvider.SetParameters ( IDbCommand  cmd,
params object[]  args 
) [virtual]

Sets parameter values using args list in the natural order.

Parameters:
cmd IDbCommand object which parameters to be set
args a list of parameter values
Returns:
current instance of DBProvider

cmd.Parameters.Count should be equal to args.Length

Generated on Wed Jun 2 01:15:48 2010 for WX Library 5.0 documentation by  doxygen 1.6.3