Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14225
Modified Files:
IAdoOperations.cs
Log Message:
SPRNET-752 - Implement advanced DataSet related methods in AdoTemplate
Index: IAdoOperations.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/IAdoOperations.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** IAdoOperations.cs 25 Jul 2007 08:25:19 -0000 1.23
--- IAdoOperations.cs 4 Dec 2007 06:52:19 -0000 1.24
***************
*** 49,60 ****
/// <summary>
! /// Execute a ADO.NET operation on a command object using a interface based callback.
/// </summary>
/// <param name="action">the callback to execute</param>
/// <returns>object returned from callback</returns>
object Execute(ICommandCallback action);
! object Execute(IDbCommandCreator commandCreator, ICommandCallback commandCallback);
!
object Execute(IDataAdapterCallback dataAdapterCallback);
--- 49,75 ----
/// <summary>
! /// Execute a ADO.NET operation on a command object using an interface based callback.
/// </summary>
/// <param name="action">the callback to execute</param>
/// <returns>object returned from callback</returns>
object Execute(ICommandCallback action);
+
+ /// <summary>
+ /// Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator,
+ /// using the interface based callback IDbCommandCallback.
+ /// </summary>
+ /// <param name="commandCreator">The command creator.</param>
+ /// <param name="action">The callback to execute based on IDbCommand</param>
+ /// <returns>A result object returned by the action or null</returns>
+ object Execute(IDbCommandCreator commandCreator, ICommandCallback action);
! /// <summary>
! /// Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback.
! /// </summary>
! /// <remarks>This allows for implementing abritrary data access operations
! /// on a single DataAdapter within Spring's managed ADO.NET environment.
! /// </remarks>
! /// <param name="dataAdapterCallback">The data adapter callback.</param>
! /// <returns>A result object returned by the callback or null</returns>
object Execute(IDataAdapterCallback dataAdapterCallback);
***************
*** 514,533 ****
IDbParameters parameters,
ITableMapping tableMapping,
! IDataAdapterSetter dataAdapterSetter);
!
!
! //TODO
! /*
! int DataTableUpdateWithCommandBuilder(DataTable dataTable,
! CommandType commandType,
! string selectSql,
! IDbParameters parameters,
! IDbDataAdapterCreator dataAdapterCreator);
! */
!
! int DataTableUpdateWithCommandBuilder(DataTable dataTable,
! IDbCommandCreator selectCommandCreator,
! IDbDataAdapterCreator dataAdapterCreator);
!
int DataTableUpdate(DataTable dataTable,
--- 529,533 ----
IDbParameters parameters,
ITableMapping tableMapping,
! IDataAdapterSetter dataAdapterSetter);
int DataTableUpdate(DataTable dataTable,
***************
*** 598,605 ****
IDataAdapterSetter dataAdapterSetter,
IDataSetFillLifecycleProcessor fillLifecycleProcessor);
!
! DataSet DataSetCreateWithParams(IDbDataAdapterCreator dataAdapterCreator,
! IDataSetFillLifecycleProcessor fillLifecycleProcessor);
!
#endregion
--- 598,602 ----
IDataAdapterSetter dataAdapterSetter,
IDataSetFillLifecycleProcessor fillLifecycleProcessor);
!
#endregion
***************
*** 665,674 ****
ITableMappingCollection tableMapping,
IDataAdapterSetter dataAdapterSetter,
! IDataSetFillLifecycleProcessor fillLifecycleProcessor);
!
! int DataSetFillWithParameters(DataSet dataSet,
! IDbDataAdapterCreator dataAdapterCreator,
! IDataSetFillLifecycleProcessor fillLifecycleProcessor);
!
#endregion
--- 662,666 ----
ITableMappingCollection tableMapping,
IDataAdapterSetter dataAdapterSetter,
! IDataSetFillLifecycleProcessor fillLifecycleProcessor);
#endregion
***************
*** 681,685 ****
CommandType commandType,
string selectSql,
! IDbParameters parameters,
string tableName);
--- 673,677 ----
CommandType commandType,
string selectSql,
! IDbParameters selectParameters,
string tableName);
***************
*** 687,691 ****
CommandType commandType,
string selectSql,
! IDbParameters parameters,
string tableName,
IDataAdapterSetter dataAdapterSetter);
--- 679,683 ----
CommandType commandType,
string selectSql,
! IDbParameters selectParameters,
string tableName,
IDataAdapterSetter dataAdapterSetter);
***************
*** 694,712 ****
CommandType commandType,
string selectSql,
! IDbParameters parameters,
ITableMappingCollection tableMapping,
IDataAdapterSetter dataAdapterSetter);
!
! int DataSetUpdateWithCommandBuilder(DataSet dataSet,
! CommandType commandType,
! string selectSql,
! IDbParameters parameters,
! IDbDataAdapterCreator dataAdapterCreator);
!
! int DataSetUpdateWithCommandBuilder(DataSet dataSet,
! IDbCommandCreator selectCommandCreator,
! IDbDataAdapterCreator dataAdapterCreator);
!
!
int DataSetUpdate(DataSet dataSet,
--- 686,693 ----
CommandType commandType,
string selectSql,
! IDbParameters selectParameters,
ITableMappingCollection tableMapping,
IDataAdapterSetter dataAdapterSetter);
!
int DataSetUpdate(DataSet dataSet,
|