Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
42 | 2 | 4 | 0.970 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 42 | 1 | src/NHibernate/Driver/ASA10ClientDriver.cs |
2 | 42 | 1 | src/NHibernate/Driver/ASAClientDriver.cs |
| ||||
namespace NHibernate.Driver { /// <summary> /// The ASAClientDriver Driver provides a database driver for Adaptive Server Anywhere 10.0. /// </summary> public class ASA10ClientDriver : ReflectionBasedDriver { /// <summary> /// Initializes a new instance of the <see cref="ASAClientDriver"/> class. /// </summary> /// <exception cref="HibernateException"> /// Thrown when the iAnywhere.Data.SQLAnywhere assembly is not and can not be loaded. /// </exception> public ASA10ClientDriver() : base("iAnywhere.Data.SQLAnywhere", "iAnywhere.Data.SQLAnywhere.SAConnection", "iAnywhere.Data.SQLAnywhere.SACommand") { } /// <summary> /// iAnywhere.Data.SQLAnywhere uses named parameters in the sql. /// </summary> /// <value><see langword="true" /> - Sybase uses <c>String.Empty</c> in the sql.</value> public override bool UseNamedPrefixInSql { get { return false; } } public override bool UseNamedPrefixInParameter { get { return false; } } /// <summary> /// iAnywhere.Data.SQLAnywhere use the <c>string.Empty</c> to locate parameters in sql. /// </summary> public override string NamedPrefix { get { return string.Empty; } } } } |
| ||||
namespace NHibernate.Driver { /// <summary> /// The ASAClientDriver Driver provides a database driver for Adaptive Server Anywhere 9.0. /// </summary> public class ASAClientDriver : ReflectionBasedDriver { /// <summary> /// Initializes a new instance of the <see cref="ASAClientDriver"/> class. /// </summary> /// <exception cref="HibernateException"> /// Thrown when the ASA.Data.AsaClient assembly is not and can not be loaded. /// </exception> public ASAClientDriver() : base("iAnywhere.Data.AsaClient", "iAnywhere.Data.AsaClient.AsaConnection", "iAnywhere.Data.AsaClient.AsaCommand") { } /// <summary> /// iAnywhere.Data.AsaClient uses named parameters in the sql. /// </summary> /// <value><see langword="true" /> - Sybase uses <c>String.Empty</c> in the sql.</value> public override bool UseNamedPrefixInSql { get { return false; } } public override bool UseNamedPrefixInParameter { get { return false; } } /// <summary> /// iAnywhere.Data.AsaClient use the <c>string.Empty</c> to locate parameters in sql. /// </summary> public override string NamedPrefix { get { return string.Empty; } } } } |
| |||
namespace NHibernate.Driver { /// <summary> /// The ASAClientDriver Driver provides a database driver for Adaptive Server Anywhere 10.0. /// The ASAClientDriver Driver provides a database driver for Adaptive Server Anywhere 9.0. /// </summary> public class [[#variable56b0a400]]: ReflectionBasedDriver { /// <summary> /// Initializes a new instance of the <see cref="ASAClientDriver"/> class. /// </summary> /// <exception cref="HibernateException"> /// Thrown when the iAnywhere.Data.SQLAnywhere assembly is not and can not be loaded. /// Thrown when the ASA.Data.AsaClient assembly is not and can not be loaded. /// </exception> public [[#variable56b0a400]](): base( [[#variable56b0a3a0]], [[#variable56b0ad80]], [[#variable56b0ad00]]) { } /// <summary> /// iAnywhere.Data.SQLAnywhere uses named parameters in the sql. /// iAnywhere.Data.AsaClient uses named parameters in the sql. /// </summary> /// <value><see langword="true" /> - Sybase uses <c>String.Empty</c> in the sql.</value> public override bool UseNamedPrefixInSql { get { return false; } } public override bool UseNamedPrefixInParameter { get { return false; } } /// <summary> /// iAnywhere.Data.SQLAnywhere use the <c>string.Empty</c> to locate parameters in sql. /// iAnywhere.Data.AsaClient use the <c>string.Empty</c> to locate parameters in sql. /// </summary> public override string NamedPrefix { get { return string.Empty; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56b0a400]] | ASA10ClientDriver |
1 | 2 | [[#56b0a400]] | ASAClientDriver |
2 | 1 | [[#56b0a3a0]] | "iAnywhere.Data.SQLAnywhere" |
2 | 2 | [[#56b0a3a0]] | "iAnywhere.Data.AsaClient" |
3 | 1 | [[#56b0ad80]] | "iAnywhere.Data.SQLAnywhere.SAConnection" |
3 | 2 | [[#56b0ad80]] | "iAnywhere.Data.AsaClient.AsaConnection" |
4 | 1 | [[#56b0ad00]] | "iAnywhere.Data.SQLAnywhere.SACommand" |
4 | 2 | [[#56b0ad00]] | "iAnywhere.Data.AsaClient.AsaCommand" |