Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 3 | 6 | 0.965 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 114 | src/NHibernate/Action/EntityDeleteAction.cs |
2 | 13 | 132 | src/NHibernate/Action/EntityIdentityInsertAction.cs |
3 | 13 | 151 | src/NHibernate/Action/EntityInsertAction.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; } |
| ||||
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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6842e020]] | PreInsert |
1 | 2 | [[#6842e020]] | PreInsert |
1 | 3 | [[#6842e020]] | PreDelete |
2 | 1 | [[#6974ff80]] | IPreInsertEventListener |
2 | 2 | [[#6974ff80]] | IPreInsertEventListener |
2 | 3 | [[#6974ff80]] | IPreDeleteEventListener |
3 | 1 | [[#6974fee0]] | PreInsertEventListeners |
3 | 2 | [[#6974fee0]] | PreInsertEventListeners |
3 | 3 | [[#6974fee0]] | PreDeleteEventListeners |
4 | 1 | [[#6974fe60]] | PreInsertEvent |
4 | 2 | [[#6974fe60]] | PreInsertEvent |
4 | 3 | [[#6974fe60]] | PreDeleteEvent |
5 | 1 | [[#6974fe00]] | Id |
5 | 2 | [[#6974fe00]] | null |
5 | 3 | [[#6974fe00]] | Id |
6 | 1 | [[#6974fb20]] | OnPreInsert |
6 | 2 | [[#6974fb20]] | OnPreInsert |
6 | 3 | [[#6974fb20]] | OnPreDelete |