CloneSet299


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.966class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1171125
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs
2171304
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs
Clone Instance
1
Line Count
17
Source Line
1125
Source File
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs

                protected static void BindIndex(XmlAttribute indexAttribute, Table table, Column column)
                {
                        if (indexAttribute != null && table != null)
                        {
                                var tokens = new StringTokenizer(indexAttribute.Value, ",", false);
                                foreach (string token in tokens)
                                        table.GetOrCreateIndex(token.Trim()).AddColumn(column);
                        }
                }

                protected static void BindUniqueKey(XmlAttribute uniqueKeyAttribute, Table table, Column column)
                {
                        if (uniqueKeyAttribute != null && table != null)
                        {
                                var tokens = new StringTokenizer(uniqueKeyAttribute.Value, ",", false);
                                foreach (string token in tokens)
                                        table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column);
                        }
                }



Clone Instance
2
Line Count
17
Source Line
1304
Source File
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs

                protected static void BindIndex(string indexAttribute, Table table, Column column)
                {
                        if (indexAttribute != null && table != null)
                        {
                                var tokens = new StringTokenizer(indexAttribute, ",", false);
                                foreach (string token in tokens)
                                        table.GetOrCreateIndex(token.Trim()).AddColumn(column);
                        }
                }

                protected static void BindUniqueKey(string uniqueKeyAttribute, Table table, Column column)
                {
                        if (uniqueKeyAttribute != null && table != null)
                        {
                                var tokens = new StringTokenizer(uniqueKeyAttribute, ",", false);
                                foreach (string token in tokens)
                                        table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column);
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

protected static void BindIndex( [[#variable6c537480]]indexAttribute, Table table, Column column)
{
   if (indexAttribute != null && table != null)
   {
      var tokens = new StringTokenizer( [[#variable6e722740]], ",", false);
      foreach (string token in tokens)
         table.GetOrCreateIndex(token.Trim()).AddColumn(column);
   }
}

protected static void BindUniqueKey( [[#variable6c537480]]uniqueKeyAttribute, Table table, Column column)
{
   if (uniqueKeyAttribute != null && table != null)
   {
      var tokens = new StringTokenizer( [[#variable6f823360]], ",", false);
      foreach (string token in tokens)
         table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6c537480]]
XmlAttribute 
12[[#6c537480]]
string 
21[[#6e722740]]
indexAttribute.Value 
22[[#6e722740]]
indexAttribute 
31[[#6f823360]]
uniqueKeyAttribute.Value 
32[[#6f823360]]
uniqueKeyAttribute