Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 5 | 6 | 0.954 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 102 | src/NHibernate/Action/EntityDeleteAction.cs |
2 | 8 | 143 | src/NHibernate/Action/EntityDeleteAction.cs |
3 | 8 | 120 | src/NHibernate/Action/EntityIdentityInsertAction.cs |
4 | 8 | 126 | src/NHibernate/Action/EntityInsertAction.cs |
5 | 8 | 139 | src/NHibernate/Action/EntityInsertAction.cs |
| ||||
{ IPostDeleteEventListener[] postListeners = Session.Listeners.PostDeleteEventListeners; if (postListeners.Length > 0) { PostDeleteEvent postEvent = new PostDeleteEvent(Instance, Id, state, Persister, (IEventSource)Session); foreach (IPostDeleteEventListener listener in postListeners) { listener.OnPostDelete(postEvent); } } } |
| ||||
{ IPostDeleteEventListener[] postListeners = Session.Listeners.PostCommitDeleteEventListeners; if (postListeners.Length > 0) { PostDeleteEvent postEvent = new PostDeleteEvent(Instance, Id, state, Persister, (IEventSource)Session); foreach (IPostDeleteEventListener listener in postListeners) { listener.OnPostDelete(postEvent); } } } |
| ||||
{ IPostInsertEventListener[] postListeners = Session.Listeners.PostCommitInsertEventListeners; if (postListeners.Length > 0) { var postEvent = new PostInsertEvent(Instance, generatedId, state, Persister, (IEventSource) Session); foreach (IPostInsertEventListener listener in postListeners) { listener.OnPostInsert(postEvent); } } } |
| ||||
{ IPostInsertEventListener[] postListeners = Session.Listeners.PostInsertEventListeners; if (postListeners.Length > 0) { PostInsertEvent postEvent = new PostInsertEvent(Instance, Id, state, Persister, (IEventSource)Session); foreach (IPostInsertEventListener listener in postListeners) { listener.OnPostInsert(postEvent); } } } |
| ||||
{ IPostInsertEventListener[] postListeners = Session.Listeners.PostCommitInsertEventListeners; if (postListeners.Length > 0) { PostInsertEvent postEvent = new PostInsertEvent(Instance, Id, state, Persister, (IEventSource)Session); foreach (IPostInsertEventListener listener in postListeners) { listener.OnPostInsert(postEvent); } } } |
| |||
{ [[#variable6fdcb580]][] postListeners = Session.Listeners. [[#variable701b0ce0]]; if (postListeners.Length > 0) { [[#variable6fdcb620]]postEvent = new [[#variable6ffadd80]](Instance, [[#variable6e4c4000]], state, Persister, (IEventSource)Session); foreach ( [[#variable6fdcb580]]listener in postListeners) { listener. [[#variable6fdcb540]](postEvent); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fdcb580]] | IPostInsertEventListener |
1 | 2 | [[#6fdcb580]] | IPostInsertEventListener |
1 | 3 | [[#6fdcb580]] | IPostDeleteEventListener |
1 | 4 | [[#6fdcb580]] | IPostInsertEventListener |
1 | 5 | [[#6fdcb580]] | IPostDeleteEventListener |
2 | 1 | [[#701b0ce0]] | PostInsertEventListeners |
2 | 2 | [[#701b0ce0]] | PostCommitInsertEventListeners |
2 | 3 | [[#701b0ce0]] | PostDeleteEventListeners |
2 | 4 | [[#701b0ce0]] | PostCommitInsertEventListeners |
2 | 5 | [[#701b0ce0]] | PostCommitDeleteEventListeners |
3 | 1 | [[#6fdcb620]] | PostInsertEvent |
3 | 2 | [[#6fdcb620]] | var |
3 | 3 | [[#6fdcb620]] | PostDeleteEvent |
3 | 4 | [[#6fdcb620]] | PostInsertEvent |
3 | 5 | [[#6fdcb620]] | PostDeleteEvent |
4 | 1 | [[#6ffadd80]] | PostInsertEvent |
4 | 2 | [[#6ffadd80]] | PostInsertEvent |
4 | 3 | [[#6ffadd80]] | PostDeleteEvent |
4 | 4 | [[#6ffadd80]] | PostInsertEvent |
4 | 5 | [[#6ffadd80]] | PostDeleteEvent |
5 | 1 | [[#6e4c4000]] | Id |
5 | 2 | [[#6e4c4000]] | generatedId |
5 | 3 | [[#6e4c4000]] | Id |
5 | 4 | [[#6e4c4000]] | Id |
5 | 5 | [[#6e4c4000]] | Id |
6 | 1 | [[#6fdcb540]] | OnPostInsert |
6 | 2 | [[#6fdcb540]] | OnPostInsert |
6 | 3 | [[#6fdcb540]] | OnPostDelete |
6 | 4 | [[#6fdcb540]] | OnPostInsert |
6 | 5 | [[#6fdcb540]] | OnPostDelete |