CloneSet409


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11440.968block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11351
src/NHibernate/Event/Default/AbstractSaveEventListener.cs
211229
src/NHibernate/Event/Default/DefaultDeleteEventListener.cs
311274
src/NHibernate/Event/Default/DefaultMergeEventListener.cs
411269
src/NHibernate/Event/Default/DefaultSaveOrUpdateEventListener.cs
Clone Instance
1
Line Count
13
Source Line
51
Source File
src/NHibernate/Event/Default/AbstractSaveEventListener.cs

                {
                        // Sub-insertions should occur before containing insertion so
                        // Try to do the callback now
                        if (persister.ImplementsLifecycle(source.EntityMode))
                        {
                                log.Debug("calling OnSave()");
                                if (((ILifecycle)entity).OnSave(source) == LifecycleVeto.Veto)
                                {
                                        log.Debug("insertion vetoed by OnSave()");
                                        return true;
                                }
                        }
                        return false;
                }


Clone Instance
2
Line Count
11
Source Line
229
Source File
src/NHibernate/Event/Default/DefaultDeleteEventListener.cs

                {
                        if (persister.ImplementsLifecycle(session.EntityMode))
                        {
                                log.Debug("calling onDelete()");
                                if (((ILifecycle)entity).OnDelete(session) == LifecycleVeto.Veto)
                                {
                                        log.Debug("deletion vetoed by onDelete()");
                                        return true;
                                }
                        }
                        return false;
                }


Clone Instance
3
Line Count
11
Source Line
274
Source File
src/NHibernate/Event/Default/DefaultMergeEventListener.cs

                {
                        if (persister.ImplementsLifecycle(source.EntityMode))
                        {
                                log.Debug("calling onUpdate()");
                                if (((ILifecycle)entity).OnUpdate(source) == LifecycleVeto.Veto)
                                {
                                        log.Debug("update vetoed by onUpdate()");
                                        return true;
                                }
                        }
                        return false;
                }


Clone Instance
4
Line Count
11
Source Line
269
Source File
src/NHibernate/Event/Default/DefaultSaveOrUpdateEventListener.cs

                {
                        if (persister.ImplementsLifecycle(source.EntityMode))
                        {
                                log.Debug("calling onUpdate()");
                                if (((ILifecycle)entity).OnUpdate(source) == LifecycleVeto.Veto)
                                {
                                        log.Debug("update vetoed by onUpdate()");
                                        return true;
                                }
                        }
                        return false;
                }


Clone AbstractionParameter Count: 4Parameter Bindings

{
   // Sub-insertions should occur before containing insertion so
   // Try to do the callback now
   if (persister.ImplementsLifecycle( [[#variable6bded140]].EntityMode))
   {
      log.Debug( [[#variable6bded100]]);
      if (((ILifecycle)entity). [[#variable5f4c2740]]( [[#variable6bded140]]) == LifecycleVeto.Veto)
      {
         log.Debug( [[#variable5f4c25a0]]);
         return true;
      }
   }
   return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6bded140]]
source 
12[[#6bded140]]
session 
13[[#6bded140]]
source 
14[[#6bded140]]
source 
21[[#6bded100]]
"calling onUpdate()" 
22[[#6bded100]]
"calling onDelete()" 
23[[#6bded100]]
"calling OnSave()" 
24[[#6bded100]]
"calling onUpdate()" 
31[[#5f4c2740]]
OnUpdate 
32[[#5f4c2740]]
OnDelete 
33[[#5f4c2740]]
OnSave 
34[[#5f4c2740]]
OnUpdate 
41[[#5f4c25a0]]
"update vetoed by onUpdate()" 
42[[#5f4c25a0]]
"deletion vetoed by onDelete()" 
43[[#5f4c25a0]]
"insertion vetoed by OnSave()" 
44[[#5f4c25a0]]
"update vetoed by onUpdate()"