Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 5 | 0.951 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 1 | src/NHibernate/Type/BinaryBlobType.cs |
2 | 37 | 1 | src/NHibernate/Type/StringClobType.cs |
| ||||
using System; using NHibernate.SqlTypes; namespace NHibernate.Type { /// <summary> /// Maps a System.Byte[] Property to an column that can store a BLOB. /// </summary> /// <remarks> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a BinaryType /// would work just fine. /// </remarks> [Serializable] public class BinaryBlobType : BinaryType { internal BinaryBlobType(): base(new BinaryBlobSqlType()) { } internal BinaryBlobType(BinarySqlType sqlType) : base(sqlType) { } /// <summary></summary> public override string Name { get { return "BinaryBlob"; } } } } |
| ||||
using System; using NHibernate.SqlTypes; namespace NHibernate.Type { /// <summary> /// Maps a <see cref="System.String" /> Property to an /// <see cref="System.String" /> column that can store a CLOB. /// </summary> /// <remarks> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a StringType /// would work just fine. /// </remarks> [Serializable] public class StringClobType : StringType { /// <summary></summary> internal StringClobType() : base(new StringClobSqlType()) { } /// <summary> /// /// </summary> /// <param name="sqlType"></param> internal StringClobType(StringSqlType sqlType) : base(sqlType) { } /// <summary></summary> public override string Name { get { return "StringClob"; } } } } |
| |||
using System; using NHibernate.SqlTypes; namespace NHibernate.Type { /// <summary> /// Maps a System.Byte[] Property to an column that can store a BLOB. /// Maps a <see cref="System.String" /> Property to an /// <see cref="System.String" /> column that can store a CLOB. /// </summary> /// <remarks> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a BinaryType /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a StringType /// would work just fine. /// </remarks> [Serializable] public class [[#variable665b3d00]]: [[#variable665b3c40]] { /// <summary></summary> internal [[#variable665b3d00]](): base(new [[#variable665b3be0]]()) { } /// <summary> /// /// </summary> /// <param name="sqlType"></param> internal [[#variable665b3d00]]( [[#variable665b3b60]]sqlType): base(sqlType) { } /// <summary></summary> public override string Name { get { return [[#variable665b3a60]]; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#665b3d00]] | BinaryBlobType |
1 | 2 | [[#665b3d00]] | StringClobType |
2 | 1 | [[#665b3c40]] | BinaryType |
2 | 2 | [[#665b3c40]] | StringType |
3 | 1 | [[#665b3be0]] | BinaryBlobSqlType |
3 | 2 | [[#665b3be0]] | StringClobSqlType |
4 | 1 | [[#665b3b60]] | BinarySqlType |
4 | 2 | [[#665b3b60]] | StringSqlType |
5 | 1 | [[#665b3a60]] | "BinaryBlob" |
5 | 2 | [[#665b3a60]] | "StringClob" |