CloneSet250


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.960statement_list[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110308
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs
21038
src/NHibernate/Cfg/XmlHbmBinding/JoinedSubclassBinder.cs
Clone Instance
1
Line Count
10
Source Line
308
Source File
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs

                        // TABLENAME

                        XmlAttribute schemaNode = node.Attributes["schema"];
                        string schema = schemaNode == null ? mappings.SchemaName:  schemaNode.Value;
                        XmlAttribute catalogNode = node.Attributes["catalog"];
                        string catalog = catalogNode == null ? mappings.CatalogName:  catalogNode.Value;

                        XmlAttribute actionNode = node.Attributes["schema-action"];
                        string action = actionNode == null ? "all":  actionNode.Value;

                        Table table = mappings.AddTable(schema, catalog, GetClassTableName(persistentClass, node), null, false, action);
                        join.Table = table;


Clone Instance
2
Line Count
10
Source Line
38
Source File
src/NHibernate/Cfg/XmlHbmBinding/JoinedSubclassBinder.cs

                        //table + schema names
                        XmlAttribute schemaNode = subnode.Attributes["schema"];
                        string schema = schemaNode == null ? mappings.SchemaName:  schemaNode.Value;
                        XmlAttribute catalogNode = subnode.Attributes["catalog"];
                        string catalog = catalogNode == null ? mappings.CatalogName:  catalogNode.Value;

                        XmlAttribute actionNode = subnode.Attributes["schema-action"];
                        string action = actionNode == null ? "all":  actionNode.Value;

                        Table mytable = mappings.AddTable(schema, catalog, GetClassTableName(subclass, subnode), null, false, action);
                        ((ITableOwner)subclass).Table = mytable;


Clone AbstractionParameter Count: 4Parameter Bindings

// TABLENAME
//table + schema names
XmlAttribute schemaNode = [[#variable6f5287a0]].Attributes["schema"];
string schema = schemaNode == null ?
                mappings.SchemaName: schemaNode.Value;
XmlAttribute catalogNode = [[#variable6f5287a0]].Attributes["catalog"];
string catalog = catalogNode == null ?
                 mappings.CatalogName: catalogNode.Value;
XmlAttribute actionNode = [[#variable6f5287a0]].Attributes["schema-action"];
string action = actionNode == null ?
                "all": actionNode.Value;
Table [[#variable700404c0]]= mappings.AddTable(schema, catalog, GetClassTableName( [[#variable6f4ba6c0]], [[#variable6f5287a0]]), null, false, action);
 [[#variable6f5250a0]].Table = [[#variable700404c0]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f5287a0]]
node 
12[[#6f5287a0]]
subnode 
21[[#700404c0]]
table 
22[[#700404c0]]
mytable 
31[[#6f4ba6c0]]
persistentClass 
32[[#6f4ba6c0]]
subclass 
41[[#6f5250a0]]
join 
42[[#6f5250a0]]
((ITableOwner)subclass)