Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 5 | 0.957 | statement_list[15] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 193 | src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs |
2 | 17 | 274 | src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs |
| ||||
TestDetachedQuery tdq = new TestDetachedQuery(); tdq.SetLockMode("LM1", LockMode.Read); tdq.SetLockMode("LM2", LockMode.Write); tdq.SetProperties(new Foo("Fulano", "De Tal")); tdq.SetAnsiString(1, ""); //will be override tdq.SetByte(4, 255); tdq.SetCharacter(5, 'A'); tdq.SetDateTime(6, DateTime.MinValue); // will be override tdq.SetDateTime("6", DateTime.MinValue); // will be override tdq.SetDouble("8", 8.1F); tdq.SetEntity("9", new Foo("Fulano", "De Tal")); tdq.SetParameterList("UntypedList", new int[] { 5, 6, 7, 8 } ); // will be override tdq.SetParameterList("TypedList", new Int64[] { 5, 6, 7, 8 } , NHibernateUtil.Int64); // will be override tdq.SetComment("other comment"); // will be override origin.CopyTo(tdq); |
| ||||
TestDetachedQuery tdq = new TestDetachedQuery(); tdq.SetLockMode("LM1", LockMode.Read); tdq.SetLockMode("LM2", LockMode.Write); tdq.SetProperties(new Foo("Fulano", "De Tal")); tdq.SetAnsiString(1, ""); //will be override tdq.SetByte(4, 255); tdq.SetCharacter(5, 'A'); tdq.SetDateTime(6, DateTime.MinValue); // will be override tdq.SetDateTime("6", DateTime.MinValue); // will be override tdq.SetDouble("8", 8.1F); tdq.SetEntity("9", new Foo("Fulano", "De Tal")); tdq.SetParameterList("UntypedList", new int[] { 5, 6, 7, 8 } ); // will be override tdq.SetParameterList("TypedList", new Int64[] { 5, 6, 7, 8 } , NHibernateUtil.Int64); // will be override tdq.OverrideInfoFrom(origin); Assert.AreEqual(5, tdq.Selection.FirstRow); |
| |||
TestDetachedQuery tdq = new TestDetachedQuery(); tdq.SetLockMode("LM1", LockMode.Read); tdq.SetLockMode("LM2", LockMode.Write); tdq.SetProperties(new Foo("Fulano", "De Tal")); tdq.SetAnsiString(1, ""); //will be override tdq.SetByte(4, 255); tdq.SetCharacter(5, 'A'); tdq.SetDateTime(6, DateTime.MinValue); // will be override tdq.SetDateTime("6", DateTime.MinValue); // will be override tdq.SetDouble("8", 8.1F); tdq.SetEntity("9", new Foo("Fulano", "De Tal")); tdq.SetParameterList("UntypedList", new int[] { 5, 6, 7, 8 } ); // will be override tdq.SetParameterList("TypedList", new Int64[] { 5, 6, 7, 8 } , NHibernateUtil.Int64); // will be override tdq. [[#variable70af98c0]]( [[#variable70b54680]]); // will be override [[#variable70af9800]]. [[#variable70af9380]]( [[#variable70af9220]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70af98c0]] | OverrideInfoFrom |
1 | 2 | [[#70af98c0]] | SetComment |
2 | 1 | [[#70b54680]] | origin |
2 | 2 | [[#70b54680]] | "other comment" |
3 | 1 | [[#70af9800]] | Assert |
3 | 2 | [[#70af9800]] | origin |
4 | 1 | [[#70af9380]] | AreEqual |
4 | 2 | [[#70af9380]] | CopyTo |
5 | 1 | [[#70af9220]] | 5, tdq.Selection.FirstRow |
5 | 2 | [[#70af9220]] | tdq |