#region Apache Notice
/*****************************************************************************
* $Header: $
* $Revision: 513043 $
* $Date$
*
* iBATIS.NET Data Mapper
* Copyright (C) 2008/2005 - The Apache Software Foundation
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
********************************************************************************/
#endregion
using System;
using System.Data;
namespace Apache.Ibatis.DataMapper.Session.Transaction.External
{
public class ExternalTransaction : ITransaction
{
#region ITransaction Members
///
/// Begin the transaction with the specified isolation level.
///
/// Isolation level of the transaction
public void Begin(IsolationLevel isolationLevel)
{}
///
/// Flush the associated ISession and end the unit of work.
///
///
/// This method will commit the underlying transaction if and only if the transaction
/// was initiated by this object.
///
public void Commit()
{}
///
/// Force the underlying transaction to roll back.
///
public void Rollback()
{}
///
/// Gets a value indicating whether this instance is started.
///
///
/// true if the is started; otherwise, false.
///
public bool IsStarted
{
get { throw new Exception("The method or operation is not implemented."); }
}
///
/// Was the transaction rolled back or set to rollback only?
///
///
public bool WasRollback
{
get { throw new Exception("The method or operation is not implemented."); }
}
///
/// Was the transaction successfully committed?
///
///
///
/// This method could return even after successful invocation of Commit()
///
public bool WasCommit
{
get { throw new Exception("The method or operation is not implemented."); }
}
///
/// Enlist the in the current Transaction.
///
/// The to enlist.
///
/// It is okay for this to be a no op implementation.
///
public void Enlist(IDbCommand command)
{
}
///
/// Indicates that all operations within the scope are completed successfully.
///
public void Complete()
{
}
#endregion
#region IDisposable Members
///
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
///
public void Dispose()
{
}
#endregion
}
}