CloneSet349


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16260.971class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11795
src/NHibernate/Dialect/Schema/AbstractTableMetadata.cs
216115
src/NHibernate/Dialect/Schema/AbstractTableMetadata.cs
Clone Instance
1
Line Count
17
Source Line
95
Source File
src/NHibernate/Dialect/Schema/AbstractTableMetadata.cs

                private void AddForeignKey(DataRow rs, IDataBaseSchema meta)
                {
                        string fk = GetConstraintName(rs);

                        if (string.IsNullOrEmpty(fk))
                                return;

                        IForeignKeyMetadata info = GetForeignKeyMetadata(fk);
                        if (info == null)
                        {
                                info = GetForeignKeyMetadata(rs);
                                foreignKeys[info.Name.ToLowerInvariant()] = info;
                        }

                        foreach (DataRow row in meta.GetIndexColumns(catalog, schema, name, fk).Rows)
                        {
                                info.AddColumn(GetColumnMetadata(GetColumnName(row)));
                        }
                }



Clone Instance
2
Line Count
16
Source Line
115
Source File
src/NHibernate/Dialect/Schema/AbstractTableMetadata.cs

                private void AddIndex(DataRow rs, IDataBaseSchema meta)
                {
                        string index = GetIndexName(rs);

                        if (string.IsNullOrEmpty(index)) return;

                        IIndexMetadata info = GetIndexMetadata(index);
                        if (info == null)
                        {
                                info = GetIndexMetadata(rs);
                                indexes[info.Name.ToLowerInvariant()] = info;
                        }

                        foreach (DataRow row in meta.GetIndexColumns(catalog, schema, name, index).Rows)
                        {
                                info.AddColumn(GetColumnMetadata(GetColumnName(row)));
                        }
                }



Clone AbstractionParameter Count: 6Parameter Bindings

private void [[#variable2d35be00]](DataRow rs, IDataBaseSchema meta)
{
   string [[#variable2d35bd60]]= [[#variable2d35bd00]](rs);
   if (string.IsNullOrEmpty( [[#variable2d35bd60]]))
      return;
    [[#variable2d35bc80]]info = [[#variable2d35bbe0]]( [[#variable2d35bd60]]);
   if (info == null)
   {
      info = [[#variable2d35bbe0]](rs);
       [[#variable2d35bb40]][info.Name.ToLowerInvariant()] = info;
   }
   foreach (DataRow row in meta.GetIndexColumns(catalog, schema, name, [[#variable2d35bd60]]).Rows)
   {
      info.AddColumn(GetColumnMetadata(GetColumnName(row)));
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2d35be00]]
AddIndex 
12[[#2d35be00]]
AddForeignKey 
21[[#2d35bd60]]
index 
22[[#2d35bd60]]
fk 
31[[#2d35bd00]]
GetIndexName 
32[[#2d35bd00]]
GetConstraintName 
41[[#2d35bc80]]
IIndexMetadata 
42[[#2d35bc80]]
IForeignKeyMetadata 
51[[#2d35bbe0]]
GetIndexMetadata 
52[[#2d35bbe0]]
GetForeignKeyMetadata 
61[[#2d35bb40]]
indexes 
62[[#2d35bb40]]
foreignKeys