Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
50 | 4 | 5 | 0.956 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 37 | 1 | src/NHibernate/Driver/FirebirdClientDriver.cs |
2 | 36 | 1 | src/NHibernate/Driver/FirebirdDriver.cs |
3 | 49 | 1 | src/NHibernate/Driver/SybaseAdoNet12ClientDriver.cs |
4 | 50 | 1 | src/NHibernate/Driver/SybaseClientDriver.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 "@"; } } } } |
| ||||
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 "@"; } } } } |
| ||||
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 "@"; } } } } |
| ||||
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 "@"; } } } } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e453aa0]] | using System; |
1 | 2 | [[#5e453aa0]] | |
1 | 3 | [[#5e453aa0]] | |
1 | 4 | [[#5e453aa0]] | |
2 | 1 | [[#5e453a20]] | SybaseClientDriver |
2 | 2 | [[#5e453a20]] | SybaseAdoNet12ClientDriver |
2 | 3 | [[#5e453a20]] | FirebirdDriver |
2 | 4 | [[#5e453a20]] | FirebirdClientDriver |
3 | 1 | [[#5e4539c0]] | "Sybase.Data.AseClient" |
3 | 2 | [[#5e4539c0]] | "Sybase.AdoNet2.AseClient" |
3 | 3 | [[#5e4539c0]] | "FirebirdSql.Data.Firebird" |
3 | 4 | [[#5e4539c0]] | "FirebirdSql.Data.FirebirdClient" |
4 | 1 | [[#5e453920]] | "Sybase.Data.AseClient.AseConnection" |
4 | 2 | [[#5e453920]] | "Sybase.Data.AseClient.AseConnection" |
4 | 3 | [[#5e453920]] | "FirebirdSql.Data.Firebird.FbConnection" |
4 | 4 | [[#5e453920]] | "FirebirdSql.Data.FirebirdClient.FbConnection" |
5 | 1 | [[#5e4538a0]] | "Sybase.Data.AseClient.AseCommand" |
5 | 2 | [[#5e4538a0]] | "Sybase.Data.AseClient.AseCommand" |
5 | 3 | [[#5e4538a0]] | "FirebirdSql.Data.Firebird.FbCommand" |
5 | 4 | [[#5e4538a0]] | "FirebirdSql.Data.FirebirdClient.FbCommand" |