Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.982 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 279 | src/NHibernate/Tuple/Entity/EntityMetamodel.cs |
2 | 14 | 314 | src/NHibernate/Tuple/Entity/EntityMetamodel.cs |
| ||||
private ValueInclusion DetermineInsertValueGenerationType(Mapping.Property mappingProperty, StandardProperty runtimeProperty) { if (runtimeProperty.IsInsertGenerated) { return ValueInclusion.Full; } else if (mappingProperty.Value is Mapping.Component) { if (HasPartialInsertComponentGeneration((Mapping.Component)mappingProperty.Value)) { return ValueInclusion.Partial; } } return ValueInclusion.None; } |
| ||||
private ValueInclusion DetermineUpdateValueGenerationType(Mapping.Property mappingProperty, StandardProperty runtimeProperty) { if (runtimeProperty.IsUpdateGenerated) { return ValueInclusion.Full; } else if (mappingProperty.Value is Mapping.Component) { if (HasPartialUpdateComponentGeneration((Mapping.Component)mappingProperty.Value)) { return ValueInclusion.Partial; } } return ValueInclusion.None; } |
| |||
private ValueInclusion [[#variable2c92c140]](Mapping.Property mappingProperty, StandardProperty runtimeProperty) { if (runtimeProperty. [[#variable2c92c0e0]]) { return ValueInclusion.Full; } else if (mappingProperty.Value is Mapping.Component) { if ( [[#variable2c92c080]]((Mapping.Component)mappingProperty.Value)) { return ValueInclusion.Partial; } } return ValueInclusion.None; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2c92c140]] | DetermineUpdateValueGenerationType |
1 | 2 | [[#2c92c140]] | DetermineInsertValueGenerationType |
2 | 1 | [[#2c92c0e0]] | IsUpdateGenerated |
2 | 2 | [[#2c92c0e0]] | IsInsertGenerated |
3 | 1 | [[#2c92c080]] | HasPartialUpdateComponentGeneration |
3 | 2 | [[#2c92c080]] | HasPartialInsertComponentGeneration |