| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 18 | 2 | 1 | 0.994 | class_member_declarations[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 18 | 17 | src/NHibernate/Event/AbstractPostDatabaseOperationEvent.cs |
| 2 | 18 | 18 | src/NHibernate/Event/AbstractPreDatabaseOperationEvent.cs |
| ||||
/// <summary> Constructs an event containing the pertinent information. </summary>
/// <param name="source">The session from which the event originated. </param>
/// <param name="entity">The entity to be invloved in the database operation. </param>
/// <param name="id">The entity id to be invloved in the database operation. </param>
/// <param name="persister">The entity's persister. </param>
protected AbstractPostDatabaseOperationEvent(IEventSource source, object entity, object id, IEntityPersister persister)
: base(source)
{
Entity = entity;
Id = id;
Persister = persister;
}
/// <summary> The entity involved in the database operation. </summary>
public object Entity
{ get ; private set ;
}
/// <summary> The id to be used in the database operation. </summary>
public object Id
{ get ; private set ;
}
/// <summary>
/// The persister for the <see cref="Entity"/>.
/// </summary>
public IEntityPersister Persister
{ get ; private set ;
}
|
| ||||
/// <summary> Constructs an event containing the pertinent information. </summary>
/// <param name="source">The session from which the event originated. </param>
/// <param name="entity">The entity to be invloved in the database operation. </param>
/// <param name="id">The entity id to be invloved in the database operation. </param>
/// <param name="persister">The entity's persister. </param>
protected AbstractPreDatabaseOperationEvent(IEventSource source, object entity, object id, IEntityPersister persister)
: base(source)
{
Entity = entity;
Id = id;
Persister = persister;
}
/// <summary> The entity involved in the database operation. </summary>
public object Entity
{ get ; private set ;
}
/// <summary> The id to be used in the database operation. </summary>
public object Id
{ get ; private set ;
}
/// <summary>
/// The persister for the <see cref="Entity"/>.
/// </summary>
public IEntityPersister Persister
{ get ; private set ;
}
|
| |||
/// <summary> Constructs an event containing the pertinent information. </summary>
/// <param name="source">The session from which the event originated. </param>
/// <param name="entity">The entity to be invloved in the database operation. </param>
/// <param name="id">The entity id to be invloved in the database operation. </param>
/// <param name="persister">The entity's persister. </param>
protected [[#variable258febc0]](IEventSource source, object entity, object id, IEntityPersister persister): base(source)
{
Entity = entity;
Id = id;
Persister = persister;
}
/// <summary> The entity involved in the database operation. </summary>
public object Entity
{
get ;
private set ;
}
/// <summary> The id to be used in the database operation. </summary>
public object Id
{
get ;
private set ;
}
/// <summary>
/// The persister for the <see cref="Entity"/>.
/// </summary>
public IEntityPersister Persister
{
get ;
private set ;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#258febc0]] | AbstractPreDatabaseOperationEvent |
| 1 | 2 | [[#258febc0]] | AbstractPostDatabaseOperationEvent |