| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 16 | 2 | 2 | 0.964 | class_member_declarations[6] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 16 | 66 | src/NHibernate/Persister/Entity/JoinedSubclassEntityPersister.cs |
| 2 | 12 | 39 | src/NHibernate/Persister/Entity/SingleTableEntityPersister.cs |
| ||||
// the index of the table that the property is coming from
// the array is indexed as propertyTables[propertyIndex] = tableIndex
private readonly int[] propertyTableNumbers;
// the closure of all properties in the entire hierarchy including
// subclasses and superclasses of this class
private readonly int[] subclassPropertyTableNumberClosure;
// the closure of all columns used by the entire hierarchy including
// subclasses and superclasses of this class
private readonly int[] subclassColumnTableNumberClosure;
private readonly int[] subclassFormulaTableNumberClosure;
// subclass discrimination works by assigning particular
// values to certain combinations of null primary key
// values in the outer join using an SQL CASE
private readonly Dictionary<object, string> subclassesByDiscriminatorValue = new Dictionary<object, string> ();
private readonly string[] discriminatorValues;
|
| ||||
// properties of this class, including inherited properties
private readonly int[] propertyTableNumbers;
// the closure of all columns used by the entire hierarchy including
// subclasses and superclasses of this class
private readonly int[] subclassPropertyTableNumberClosure;
private readonly int[] subclassColumnTableNumberClosure;
private readonly int[] subclassFormulaTableNumberClosure;
// discriminator column
private readonly Dictionary<object, string> subclassesByDiscriminatorValue = new Dictionary<object, string> ();
private readonly bool forceDiscriminator;
|
| |||
// the index of the table that the property is coming from // the array is indexed as propertyTables[propertyIndex] = tableIndex // properties of this class, including inherited properties private readonly int[] propertyTableNumbers; // the closure of all properties in the entire hierarchy including // the closure of all columns used by the entire hierarchy including // subclasses and superclasses of this class private readonly int[] subclassPropertyTableNumberClosure; // the closure of all columns used by the entire hierarchy including // subclasses and superclasses of this class private readonly int[] subclassColumnTableNumberClosure; private readonly int[] subclassFormulaTableNumberClosure; // subclass discrimination works by assigning particular // values to certain combinations of null primary key // values in the outer join using an SQL CASE // discriminator column private readonly Dictionary<object, string> subclassesByDiscriminatorValue = new Dictionary<object, string> (); private readonly [[#variable284f8540]] [[#variable284f84c0]]; |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#284f8540]] | string[] |
| 1 | 2 | [[#284f8540]] | bool |
| 2 | 1 | [[#284f84c0]] | discriminatorValues |
| 2 | 2 | [[#284f84c0]] | forceDiscriminator |