CloneSet758


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
43240.975compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1431
src/NHibernate/Driver/DB2400Driver.cs
2431
src/NHibernate/Driver/DB2Driver.cs
Clone Instance
1
Line Count
43
Source Line
1
Source File
src/NHibernate/Driver/DB2400Driver.cs

using System;

namespace NHibernate.Driver
{
        /// <summary>
        /// A NHibernate Driver for using the IBM.Data.DB2.iSeries DataProvider.
        /// </summary>
        public class DB2400Driver : ReflectionBasedDriver
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="DB2Driver"/> class.
                /// </summary>
                /// <exception cref="HibernateException">
                /// Thrown when the <c>IBM.Data.DB2.iSeries</c> assembly can not be loaded.
                /// </exception>
                public DB2400Driver() : base(
                        "IBM.Data.DB2.iSeries",
                        "IBM.Data.DB2.iSeries.iDB2Connection",
                        "IBM.Data.DB2.iSeries.iDB2Command")
                {
                }

                public override bool UseNamedPrefixInSql
                {
                        get { return false;
                            }
                }

                public override bool UseNamedPrefixInParameter
                {
                        get { return false;
                            }
                }

                public override string NamedPrefix
                {
                        get { return String.Empty;
                            }
                }

                public override bool SupportsMultipleOpenReaders
                {
                        get { return false;
                            }
                }

        }
}


Clone Instance
2
Line Count
43
Source Line
1
Source File
src/NHibernate/Driver/DB2Driver.cs

using System;

namespace NHibernate.Driver
{
        /// <summary>
        /// A NHibernate Driver for using the IBM.Data.DB2 DataProvider.
        /// </summary>
        public class DB2Driver : ReflectionBasedDriver
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="DB2Driver"/> class.
                /// </summary>
                /// <exception cref="HibernateException">
                /// Thrown when the <c>IBM.Data.DB2</c> assembly can not be loaded.
                /// </exception>
                public DB2Driver() : base(
                        "IBM.Data.DB2",
                        "IBM.Data.DB2.DB2Connection",
                        "IBM.Data.DB2.DB2Command")
                {
                }

                public override bool UseNamedPrefixInSql
                {
                        get { return false;
                            }
                }

                public override bool UseNamedPrefixInParameter
                {
                        get { return false;
                            }
                }

                public override string NamedPrefix
                {
                        get { return String.Empty;
                            }
                }

                public override bool SupportsMultipleOpenReaders
                {
                        get { return false;
                            }
                }

        }
}


Clone AbstractionParameter Count: 4Parameter Bindings

using System;
namespace NHibernate.Driver
{
   /// <summary>
   /// A NHibernate Driver for using the IBM.Data.DB2.iSeries DataProvider.
   /// A NHibernate Driver for using the IBM.Data.DB2 DataProvider.
   /// </summary>
   public class [[#variable662e0460]]: ReflectionBasedDriver
   {
      /// <summary>
      /// Initializes a new instance of the <see cref="DB2Driver"/> class.
      /// </summary>
      /// <exception cref="HibernateException">
      /// Thrown when the <c>IBM.Data.DB2.iSeries</c> assembly can not be loaded.
      /// Thrown when the <c>IBM.Data.DB2</c> assembly can not be loaded.
      /// </exception>
      public [[#variable662e0460]](): base( [[#variable662e03e0]], [[#variable563f85c0]], [[#variable662e02a0]])
      {
      }

      public override bool UseNamedPrefixInSql
      {
         get
         {
            return false;
         }
      }

      public override bool UseNamedPrefixInParameter
      {
         get
         {
            return false;
         }
      }

      public override string NamedPrefix
      {
         get
         {
            return String.Empty;
         }
      }

      public override bool SupportsMultipleOpenReaders
      {
         get
         {
            return false;
         }
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#662e0460]]
DB2400Driver 
12[[#662e0460]]
DB2Driver 
21[[#662e03e0]]
"IBM.Data.DB2.iSeries" 
22[[#662e03e0]]
"IBM.Data.DB2" 
31[[#563f85c0]]
"IBM.Data.DB2.iSeries.iDB2Connection" 
32[[#563f85c0]]
"IBM.Data.DB2.DB2Connection" 
41[[#662e02a0]]
"IBM.Data.DB2.iSeries.iDB2Command" 
42[[#662e02a0]]
"IBM.Data.DB2.DB2Command"