CloneSet693


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.995block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115243
src/NHibernate/Event/Default/DefaultDeleteEventListener.cs
215262
src/NHibernate/Event/Default/DefaultDeleteEventListener.cs
Clone Instance
1
Line Count
15
Source Line
243
Source File
src/NHibernate/Event/Default/DefaultDeleteEventListener.cs

                {
                        ISessionImplementor si = session;
                        CacheMode cacheMode = si.CacheMode;
                        si.CacheMode = CacheMode.Get;
                        session.PersistenceContext.IncrementCascadeLevel();
                        try
                        {
                                // cascade-delete to collections BEFORE the collection owner is deleted
                                new Cascade(CascadingAction.Delete, CascadePoint.AfterInsertBeforeDelete, session).CascadeOn(persister, entity,
                                                                                                                             transientEntities);
                        }
                        finally
                        {
                                session.PersistenceContext.DecrementCascadeLevel();
                                si.CacheMode = cacheMode;
                        }
                }


Clone Instance
2
Line Count
15
Source Line
262
Source File
src/NHibernate/Event/Default/DefaultDeleteEventListener.cs

                {
                        ISessionImplementor si = session;
                        CacheMode cacheMode = si.CacheMode;
                        si.CacheMode = CacheMode.Get;
                        session.PersistenceContext.IncrementCascadeLevel();
                        try
                        {
                                // cascade-delete to many-to-one AFTER the parent was deleted
                                new Cascade(CascadingAction.Delete, CascadePoint.BeforeInsertAfterDelete, session).CascadeOn(persister, entity,
                                                                                                                             transientEntities);
                        }
                        finally
                        {
                                session.PersistenceContext.DecrementCascadeLevel();
                                si.CacheMode = cacheMode;
                        }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

{
   ISessionImplementor si = session;
   CacheMode cacheMode = si.CacheMode;
   si.CacheMode = CacheMode.Get;
   session.PersistenceContext.IncrementCascadeLevel();
   try
   {
      // cascade-delete to collections BEFORE the collection owner is deleted
      // cascade-delete to many-to-one AFTER the parent was deleted
      new Cascade(CascadingAction.Delete, CascadePoint. [[#variable6e701000]], session).CascadeOn(persister, entity, transientEntities);
   }
   finally
   {
      session.PersistenceContext.DecrementCascadeLevel();
      si.CacheMode = cacheMode;
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e701000]]
AfterInsertBeforeDelete 
12[[#6e701000]]
BeforeInsertAfterDelete