Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 4 | 0.960 | statement_list[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 308 | src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs |
2 | 10 | 38 | src/NHibernate/Cfg/XmlHbmBinding/JoinedSubclassBinder.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; |
| ||||
//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; |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6f5287a0]] | node |
1 | 2 | [[#6f5287a0]] | subnode |
2 | 1 | [[#700404c0]] | table |
2 | 2 | [[#700404c0]] | mytable |
3 | 1 | [[#6f4ba6c0]] | persistentClass |
3 | 2 | [[#6f4ba6c0]] | subclass |
4 | 1 | [[#6f5250a0]] | join |
4 | 2 | [[#6f5250a0]] | ((ITableOwner)subclass) |