Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12730
Modified Files:
NonBatchingBatcher.cs
Log Message:
fixing xml comments and letting ReSharper do reformatting
Index: NonBatchingBatcher.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/NonBatchingBatcher.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** NonBatchingBatcher.cs 14 Sep 2004 17:49:55 -0000 1.6
--- NonBatchingBatcher.cs 31 Dec 2004 19:52:14 -0000 1.7
***************
*** 1,32 ****
- using System;
using System.Data;
using NHibernate.Engine;
! namespace NHibernate.Impl
{
/// <summary>
/// An implementation of the <c>IBatcher</c> inteface that does no batching
/// </summary>
! internal class NonBatchingBatcher : BatcherImpl
{
!
! public NonBatchingBatcher(ISessionImplementor session) : base(session)
! {
}
! public override void AddToBatch(int expectedRowCount)
{
int rowCount = this.ExecuteNonQuery( this.GetCommand() );
//negative expected row count means we don't know how many rows to expect
! if ( expectedRowCount>0 && expectedRowCount!=rowCount )
{
! throw new HibernateException("SQL update or deletion failed (row not found)");
}
}
! protected override void DoExecuteBatch(IDbCommand ps)
{
}
}
! }
--- 1,43 ----
using System.Data;
using NHibernate.Engine;
!
! namespace NHibernate.Impl
{
/// <summary>
/// An implementation of the <c>IBatcher</c> inteface that does no batching
/// </summary>
! internal class NonBatchingBatcher : BatcherImpl
{
! /// <summary>
! ///
! /// </summary>
! /// <param name="session"></param>
! public NonBatchingBatcher( ISessionImplementor session ) : base( session )
! {
}
! /// <summary>
! ///
! /// </summary>
! /// <param name="expectedRowCount"></param>
! public override void AddToBatch( int expectedRowCount )
{
int rowCount = this.ExecuteNonQuery( this.GetCommand() );
//negative expected row count means we don't know how many rows to expect
! if( expectedRowCount > 0 && expectedRowCount != rowCount )
{
! throw new HibernateException( "SQL update or deletion failed (row not found)" );
}
}
! /// <summary>
! ///
! /// </summary>
! /// <param name="ps"></param>
! protected override void DoExecuteBatch( IDbCommand ps )
{
}
}
! }
\ No newline at end of file
|