CloneSet373


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
50450.956compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1371
src/NHibernate/Driver/FirebirdClientDriver.cs
2361
src/NHibernate/Driver/FirebirdDriver.cs
3491
src/NHibernate/Driver/SybaseAdoNet12ClientDriver.cs
4501
src/NHibernate/Driver/SybaseClientDriver.cs
Clone Instance
1
Line Count
37
Source Line
1
Source File
src/NHibernate/Driver/FirebirdClientDriver.cs

namespace NHibernate.Driver
{
        /// <summary>
        /// A NHibernate Driver for using the Firebird data provider located in
        /// <c>FirebirdSql.Data.FirebirdClient</c> assembly.
        /// </summary>
        public class FirebirdClientDriver : ReflectionBasedDriver
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="FirebirdDriver"/> class.
                /// </summary>
                /// <exception cref="HibernateException">
                /// Thrown when the <c>FirebirdSql.Data.Firebird</c> assembly can not be loaded.
                /// </exception>
                public FirebirdClientDriver() : base(
                        "FirebirdSql.Data.FirebirdClient",
                        "FirebirdSql.Data.FirebirdClient.FbConnection",
                        "FirebirdSql.Data.FirebirdClient.FbCommand")
                {
                }

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

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

                public override string NamedPrefix
                {
                        get { return "@";
                            }
                }

        }
}


Clone Instance
2
Line Count
36
Source Line
1
Source File
src/NHibernate/Driver/FirebirdDriver.cs

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

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

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

                public override string NamedPrefix
                {
                        get { return "@";
                            }
                }

        }
}


Clone Instance
3
Line Count
49
Source Line
1
Source File
src/NHibernate/Driver/SybaseAdoNet12ClientDriver.cs

namespace NHibernate.Driver
{
        /// <summary>
        /// The SybaseClientDriver Driver provides a database driver for Sybase.
        /// </summary>
        /// <remarks>
        /// It has been reported to work with the <see cref="Dialect.MsSql2000Dialect"/>.
        /// </remarks>
        public class SybaseAdoNet12ClientDriver : ReflectionBasedDriver
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="SybaseClientDriver"/> class.
                /// </summary>
                /// <exception cref="HibernateException">
                /// Thrown when the Sybase.Data.AseClient assembly can not be loaded.
                /// </exception>
                public SybaseAdoNet12ClientDriver()
                        : base(
                                        "Sybase.AdoNet2.AseClient",
                                        "Sybase.Data.AseClient.AseConnection",
                                        "Sybase.Data.AseClient.AseCommand")
                {
                }

                /// <summary>
                /// Sybase.Data.AseClient uses named parameters in the sql.
                /// </summary>
                /// <value><see langword="true" /> - Sybase uses <c>@</c> in the sql.</value>
                public override bool UseNamedPrefixInSql
                {
                        get { return true;
                            }
                }

                /// <summary></summary>
                public override bool UseNamedPrefixInParameter
                {
                        get { return true;
                            }
                }

                /// <summary>
                /// Sybase.Data.AseClient use the <c>@</c> to locate parameters in sql.
                /// </summary>
                /// <value><c>@</c> is used to locate parameters in sql.</value>
                public override string NamedPrefix
                {
                        get { return "@";
                            }
                }

        }
}


Clone Instance
4
Line Count
50
Source Line
1
Source File
src/NHibernate/Driver/SybaseClientDriver.cs

using System;

namespace NHibernate.Driver
{
        /// <summary>
        /// The SybaseClientDriver Driver provides a database driver for Sybase.
        /// </summary>
        /// <remarks>
        /// It has been reported to work with the <see cref="Dialect.MsSql2000Dialect"/>.
        /// </remarks>
        public class SybaseClientDriver : ReflectionBasedDriver
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="SybaseClientDriver"/> class.
                /// </summary>
                /// <exception cref="HibernateException">
                /// Thrown when the Sybase.Data.AseClient assembly can not be loaded.
                /// </exception>
                public SybaseClientDriver() : base(
                        "Sybase.Data.AseClient",
                        "Sybase.Data.AseClient.AseConnection",
                        "Sybase.Data.AseClient.AseCommand")
                {
                }

                /// <summary>
                /// Sybase.Data.AseClient uses named parameters in the sql.
                /// </summary>
                /// <value><see langword="true" /> - Sybase uses <c>@</c> in the sql.</value>
                public override bool UseNamedPrefixInSql
                {
                        get { return true;
                            }
                }

                /// <summary></summary>
                public override bool UseNamedPrefixInParameter
                {
                        get { return true;
                            }
                }

                /// <summary>
                /// Sybase.Data.AseClient use the <c>@</c> to locate parameters in sql.
                /// </summary>
                /// <value><c>@</c> is used to locate parameters in sql.</value>
                public override string NamedPrefix
                {
                        get { return "@";
                            }
                }

        }
}


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variable5e453aa0]]
namespace NHibernate.Driver
{
   /// <summary>
   /// The SybaseClientDriver Driver provides a database driver for Sybase.
   /// A NHibernate Driver for using the FirebirdSql.Data.Firebird DataProvider.
   /// A NHibernate Driver for using the Firebird data provider located in
   /// <c>FirebirdSql.Data.FirebirdClient</c> assembly.
   /// </summary>
   /// <remarks>
   /// It has been reported to work with the <see cref="Dialect.MsSql2000Dialect"/>.
   /// </remarks>
   public class [[#variable5e453a20]]: ReflectionBasedDriver
   {
      /// <summary>
      /// Initializes a new instance of the <see cref="SybaseClientDriver"/> class.
      /// Initializes a new instance of the <see cref="FirebirdDriver"/> class.
      /// </summary>
      /// <exception cref="HibernateException">
      /// Thrown when the Sybase.Data.AseClient assembly can not be loaded.
      /// Thrown when the <c>FirebirdSql.Data.Firebird</c> assembly can not be loaded.
      /// </exception>
      public [[#variable5e453a20]](): base( [[#variable5e4539c0]], [[#variable5e453920]], [[#variable5e4538a0]])
      {
      }

      /// <summary>
      /// Sybase.Data.AseClient uses named parameters in the sql.
      /// </summary>
      /// <value><see langword="true" /> - Sybase uses <c>@</c> in the sql.</value>
      public override bool UseNamedPrefixInSql
      {
         get
         {
            return true;
         }
      }

      /// <summary></summary>
      public override bool UseNamedPrefixInParameter
      {
         get
         {
            return true;
         }
      }

      /// <summary>
      /// Sybase.Data.AseClient use the <c>@</c> to locate parameters in sql.
      /// </summary>
      /// <value><c>@</c> is used to locate parameters in sql.</value>
      public override string NamedPrefix
      {
         get
         {
            return "@";
         }
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e453aa0]]
using System; 
12[[#5e453aa0]]
13[[#5e453aa0]]
14[[#5e453aa0]]
21[[#5e453a20]]
SybaseClientDriver 
22[[#5e453a20]]
SybaseAdoNet12ClientDriver 
23[[#5e453a20]]
FirebirdDriver 
24[[#5e453a20]]
FirebirdClientDriver 
31[[#5e4539c0]]
"Sybase.Data.AseClient" 
32[[#5e4539c0]]
"Sybase.AdoNet2.AseClient" 
33[[#5e4539c0]]
"FirebirdSql.Data.Firebird" 
34[[#5e4539c0]]
"FirebirdSql.Data.FirebirdClient" 
41[[#5e453920]]
"Sybase.Data.AseClient.AseConnection" 
42[[#5e453920]]
"Sybase.Data.AseClient.AseConnection" 
43[[#5e453920]]
"FirebirdSql.Data.Firebird.FbConnection" 
44[[#5e453920]]
"FirebirdSql.Data.FirebirdClient.FbConnection" 
51[[#5e4538a0]]
"Sybase.Data.AseClient.AseCommand" 
52[[#5e4538a0]]
"Sybase.Data.AseClient.AseCommand" 
53[[#5e4538a0]]
"FirebirdSql.Data.Firebird.FbCommand" 
54[[#5e4538a0]]
"FirebirdSql.Data.FirebirdClient.FbCommand"