Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 4 | 3 | 0.966 | class_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 12 | src/NHibernate/Event/PostDeleteEvent.cs |
2 | 7 | 12 | src/NHibernate/Event/PostInsertEvent.cs |
3 | 11 | 19 | src/NHibernate/Event/PreDeleteEvent.cs |
4 | 10 | 11 | src/NHibernate/Event/PreInsertEvent.cs |
| ||||
public PostDeleteEvent(object entity, object id, object[] deletedState, IEntityPersister persister, IEventSource source) : base(source, entity, id, persister) { DeletedState = deletedState; } public object[] DeletedState { get ; private set ; } |
| ||||
public PostInsertEvent(object entity, object id, object[] state, IEntityPersister persister, IEventSource source) : base(source, entity, id, persister) { State = state; } public object[] State { get ; private set ; } |
| ||||
/// <summary> /// Constructs an event containing the pertinent information. /// </summary> /// <param name="entity">The entity to be deleted. </param> /// <param name="id">The id to use in the deletion. </param> /// <param name="deletedState">The entity's state at deletion time. </param> /// <param name="persister">The entity's persister. </param> /// <param name="source">The session from which the event originated. </param> public PreDeleteEvent(object entity, object id, object[] deletedState, IEntityPersister persister, IEventSource source) : base(source, entity, id, persister) { DeletedState = deletedState; } /// <summary> /// This is the entity state at the /// time of deletion (useful for optomistic locking and such). /// </summary> public object[] DeletedState { get ; private set ; } |
| ||||
public PreInsertEvent(object entity, object id, object[] state, IEntityPersister persister, IEventSource source) : base(source, entity, id, persister) { State = state; } /// <summary> /// These are the values to be inserted. /// </summary> public object[] State { get ; private set ; } |
| |||
/// <summary> /// Constructs an event containing the pertinent information. /// </summary> /// <param name="entity">The entity to be deleted. </param> /// <param name="id">The id to use in the deletion. </param> /// <param name="deletedState">The entity's state at deletion time. </param> /// <param name="persister">The entity's persister. </param> /// <param name="source">The session from which the event originated. </param> public [[#variable6cfadd60]](object entity, object id, object[] [[#variable6cfadca0]], IEntityPersister persister, IEventSource source): base(source, entity, id, persister) { [[#variable6cfadc20]]= [[#variable6cfadca0]]; } /// <summary> /// These are the values to be inserted. /// This is the entity state at the /// time of deletion (useful for optomistic locking and such). /// </summary> public object[] [[#variable6cfadc20]] { get ; private set ; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6cfadd60]] | PreInsertEvent |
1 | 2 | [[#6cfadd60]] | PreDeleteEvent |
1 | 3 | [[#6cfadd60]] | PostInsertEvent |
1 | 4 | [[#6cfadd60]] | PostDeleteEvent |
2 | 1 | [[#6cfadca0]] | state |
2 | 2 | [[#6cfadca0]] | deletedState |
2 | 3 | [[#6cfadca0]] | state |
2 | 4 | [[#6cfadca0]] | deletedState |
3 | 1 | [[#6cfadc20]] | State |
3 | 2 | [[#6cfadc20]] | DeletedState |
3 | 3 | [[#6cfadc20]] | State |
3 | 4 | [[#6cfadc20]] | DeletedState |