| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 2 | 0.968 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 69 | src/NHibernate/Type/AbstractType.cs |
| 2 | 6 | 87 | src/NHibernate/Type/AbstractType.cs |
| ||||
/// <summary>
/// Disassembles the object into a cacheable representation.
/// </summary>
/// <param name="value">The value to disassemble.</param>
/// <param name="session">The <see cref="ISessionImplementor"/> is not used by this method.</param>
/// <param name="owner">optional parent entity object (needed for collections) </param>
/// <returns>The disassembled, deep cloned state of the object</returns>
/// <remarks>
/// This method calls DeepCopy if the value is not null.
/// </remarks>
public virtual object Disassemble(object value, ISessionImplementor session, object owner)
{
if (value == null)
return null;
return DeepCopy(value, session.EntityMode, session.Factory);
}
|
| ||||
/// <summary>
/// Reconstructs the object from its cached "disassembled" state.
/// </summary>
/// <param name="cached">The disassembled state from the cache</param>
/// <param name="session">The <see cref="ISessionImplementor"/> is not used by this method.</param>
/// <param name="owner">The parent Entity object is not used by this method</param>
/// <returns>The assembled object.</returns>
/// <remarks>
/// This method calls DeepCopy if the value is not null.
/// </remarks>
public virtual object Assemble(object cached, ISessionImplementor session, object owner)
{
if (cached == null)
return null;
return DeepCopy(cached, session.EntityMode, session.Factory);
}
|
| |||
/// <summary>
/// Reconstructs the object from its cached "disassembled" state.
/// Disassembles the object into a cacheable representation.
/// </summary>
/// <param name="cached">The disassembled state from the cache</param>
/// <param name="value">The value to disassemble.</param>
/// <param name="session">The <see cref="ISessionImplementor"/> is not used by this method.</param>
/// <param name="owner">The parent Entity object is not used by this method</param>
/// <returns>The assembled object.</returns>
/// <param name="owner">optional parent entity object (needed for collections) </param>
/// <returns>The disassembled, deep cloned state of the object</returns>
/// <remarks>
/// This method calls DeepCopy if the value is not null.
/// </remarks>
public virtual object [[#variable28a06000]](object [[#variable287e1f60]], ISessionImplementor session, object owner)
{
if ( [[#variable287e1f60]]== null)
return null;
return DeepCopy( [[#variable287e1f60]], session.EntityMode, session.Factory);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#28a06000]] | Assemble |
| 1 | 2 | [[#28a06000]] | Disassemble |
| 2 | 1 | [[#287e1f60]] | cached |
| 2 | 2 | [[#287e1f60]] | value |