CloneSet325


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13360.965class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113114
src/NHibernate/Action/EntityDeleteAction.cs
213132
src/NHibernate/Action/EntityIdentityInsertAction.cs
313151
src/NHibernate/Action/EntityInsertAction.cs
Clone Instance
1
Line Count
13
Source Line
114
Source File
src/NHibernate/Action/EntityDeleteAction.cs

                private bool PreDelete()
                {
                        IPreDeleteEventListener[] preListeners = Session.Listeners.PreDeleteEventListeners;
                        bool veto = false;
                        if (preListeners.Length > 0)
                        {
                                var preEvent = new PreDeleteEvent(Instance, Id, state, Persister, (IEventSource)Session);
                                foreach (IPreDeleteEventListener listener in preListeners)
                                {
                                        veto |= listener.OnPreDelete(preEvent);
                                }
                        }
                        return veto;
                }



Clone Instance
2
Line Count
13
Source Line
132
Source File
src/NHibernate/Action/EntityIdentityInsertAction.cs

                private bool PreInsert()
                {
                        IPreInsertEventListener[] preListeners = Session.Listeners.PreInsertEventListeners;
                        bool veto = false;
                        if (preListeners.Length > 0)
                        {
                                var preEvent = new PreInsertEvent(Instance, null, state, Persister, (IEventSource) Session);
                                foreach (IPreInsertEventListener listener in preListeners)
                                {
                                        veto |= listener.OnPreInsert(preEvent);
                                }
                        }
                        return veto;
                }



Clone Instance
3
Line Count
13
Source Line
151
Source File
src/NHibernate/Action/EntityInsertAction.cs

                private bool PreInsert()
                {
                        IPreInsertEventListener[] preListeners = Session.Listeners.PreInsertEventListeners;
                        bool veto = false;
                        if (preListeners.Length > 0)
                        {
                                var preEvent = new PreInsertEvent(Instance, Id, state, Persister, (IEventSource) Session);
                                foreach (IPreInsertEventListener listener in preListeners)
                                {
                                        veto |= listener.OnPreInsert(preEvent);
                                }
                        }
                        return veto;
                }



Clone AbstractionParameter Count: 6Parameter Bindings

private bool [[#variable6842e020]]()
{
    [[#variable6974ff80]][] preListeners = Session.Listeners. [[#variable6974fee0]];
   bool veto = false;
   if (preListeners.Length > 0)
   {
      var preEvent = new [[#variable6974fe60]](Instance, [[#variable6974fe00]], state, Persister, (IEventSource)Session);
      foreach ( [[#variable6974ff80]]listener in preListeners)
      {
         veto |= listener. [[#variable6974fb20]](preEvent);
      }
   }
   return veto;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6842e020]]
PreInsert 
12[[#6842e020]]
PreInsert 
13[[#6842e020]]
PreDelete 
21[[#6974ff80]]
IPreInsertEventListener 
22[[#6974ff80]]
IPreInsertEventListener 
23[[#6974ff80]]
IPreDeleteEventListener 
31[[#6974fee0]]
PreInsertEventListeners 
32[[#6974fee0]]
PreInsertEventListeners 
33[[#6974fee0]]
PreDeleteEventListeners 
41[[#6974fe60]]
PreInsertEvent 
42[[#6974fe60]]
PreInsertEvent 
43[[#6974fe60]]
PreDeleteEvent 
51[[#6974fe00]]
Id 
52[[#6974fe00]]
null 
53[[#6974fe00]]
Id 
61[[#6974fb20]]
OnPreInsert 
62[[#6974fb20]]
OnPreInsert 
63[[#6974fb20]]
OnPreDelete