Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 3 | 0.989 | namespace_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 67 | src/NHibernate/Dialect/Schema/SQLiteMetaData.cs |
2 | 21 | 102 | src/NHibernate/Dialect/Schema/SybaseAnywhereMetaData.cs |
| ||||
public class SQLiteColumnMetaData : AbstractColumnMetaData { public SQLiteColumnMetaData(DataRow rs) : base(rs) { Name = Convert.ToString(rs["COLUMN_NAME"]); object objValue = rs["CHARACTER_MAXIMUM_LENGTH"]; if (objValue != DBNull.Value) { ColumnSize = Convert.ToInt32(objValue); } objValue = rs["NUMERIC_PRECISION"]; if (objValue != DBNull.Value) { NumericalPrecision = Convert.ToInt32(objValue); } Nullable = Convert.ToString(rs["IS_NULLABLE"]); TypeName = Convert.ToString(rs["DATA_TYPE"]); } } |
| ||||
public class SybaseAnywhereColumnMetaData : AbstractColumnMetaData { public SybaseAnywhereColumnMetaData(DataRow rs) : base(rs) { Name = Convert.ToString(rs["COLUMN_NAME"]); object objValue = rs["COLUMN_SIZE"]; if (objValue != DBNull.Value) { ColumnSize = Convert.ToInt32(objValue); } objValue = rs["PRECISION"]; if (objValue != DBNull.Value) { NumericalPrecision = Convert.ToInt32(objValue); } Nullable = Convert.ToString(rs["IS_NULLABLE"]); TypeName = Convert.ToString(rs["DATA_TYPE"]); } } |
| |||
public class [[#variable5f777260]]: AbstractColumnMetaData { public [[#variable5f777260]](DataRow rs): base(rs) { Name = Convert.ToString(rs["COLUMN_NAME"]); object objValue = rs[ [[#variable5f777100]]]; if (objValue != DBNull.Value) { ColumnSize = Convert.ToInt32(objValue); } objValue = rs[ [[#variable5f7770a0]]]; if (objValue != DBNull.Value) { NumericalPrecision = Convert.ToInt32(objValue); } Nullable = Convert.ToString(rs["IS_NULLABLE"]); TypeName = Convert.ToString(rs["DATA_TYPE"]); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f777260]] | SybaseAnywhereColumnMetaData |
1 | 2 | [[#5f777260]] | SQLiteColumnMetaData |
2 | 1 | [[#5f777100]] | "COLUMN_SIZE" |
2 | 2 | [[#5f777100]] | "CHARACTER_MAXIMUM_LENGTH" |
3 | 1 | [[#5f7770a0]] | "PRECISION" |
3 | 2 | [[#5f7770a0]] | "NUMERIC_PRECISION" |