Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.995 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 243 | src/NHibernate/Event/Default/DefaultDeleteEventListener.cs |
2 | 15 | 262 | 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; } } |
| ||||
{ 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; } } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6e701000]] | AfterInsertBeforeDelete |
1 | 2 | [[#6e701000]] | BeforeInsertAfterDelete |