Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 3 | 0.965 | namespace_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 4 | src/NHibernate/Event/PostUpdateEvent.cs |
2 | 27 | 3 | src/NHibernate/Event/PreUpdateEvent.cs |
| ||||
namespace NHibernate.Event { /// <summary> /// Occurs after the datastore is updated /// </summary> [Serializable] public class PostUpdateEvent : AbstractPostDatabaseOperationEvent { public PostUpdateEvent(object entity, object id, object[] state, object[] oldState, IEntityPersister persister, IEventSource source) : base(source, entity, id, persister) { State = state; OldState = oldState; } public object[] State { get ; private set ; } public object[] OldState { get ; private set ; } } } |
| ||||
namespace NHibernate.Event { /// <summary> /// Represents a <tt>pre-update</tt> event, which occurs just prior to /// performing the update of an entity in the database. /// </summary> public class PreUpdateEvent : AbstractPreDatabaseOperationEvent { public PreUpdateEvent(object entity, object id, object[] state, object[] oldState, IEntityPersister persister, IEventSource source) : base(source, entity, id, persister) { State = state; OldState = oldState; } /// <summary> /// Retrieves the state to be used in the update. /// </summary> public object[] State { get ; private set ; } /// <summary> /// The old state of the entity at the time it was last loaded from the /// database; can be null in the case of detached entities. /// </summary> public object[] OldState { get ; private set ; } } } |
| |||
namespace NHibernate.Event { [[#variable56a7bd60]] /// <summary> /// Represents a <tt>pre-update</tt> event, which occurs just prior to /// performing the update of an entity in the database. /// </summary> public class [[#variable56a7bce0]]: [[#variable56a7bc60]] { public [[#variable56a7bce0]](object entity, object id, object[] state, object[] oldState, IEntityPersister persister, IEventSource source): base(source, entity, id, persister) { State = state; OldState = oldState; } /// <summary> /// Retrieves the state to be used in the update. /// </summary> public object[] State { get ; private set ; } /// <summary> /// The old state of the entity at the time it was last loaded from the /// database; can be null in the case of detached entities. /// </summary> public object[] OldState { get ; private set ; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56a7bd60]] | /// <summary> /// Occurs after the datastore is updated /// </summary> [Serializable] |
1 | 2 | [[#56a7bd60]] | |
2 | 1 | [[#56a7bce0]] | PostUpdateEvent |
2 | 2 | [[#56a7bce0]] | PreUpdateEvent |
3 | 1 | [[#56a7bc60]] | AbstractPostDatabaseOperationEvent |
3 | 2 | [[#56a7bc60]] | AbstractPreDatabaseOperationEvent |