CloneSet934


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19230.983class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11925
src/NHibernate/Type/IdentifierBagType.cs
22125
src/NHibernate/Type/MapType.cs
Clone Instance
1
Line Count
19
Source Line
25
Source File
src/NHibernate/Type/IdentifierBagType.cs

                /// <summary>
                /// Initializes a new instance of a <see cref="IdentifierBagType"/> class for
                /// a specific role.
                /// </summary>
                /// <param name="role">The role the persistent collection is in.</param>
                /// <param name="propertyRef">The name of the property in the
                /// owner object containing the collection ID, or <see langword="null" /> if it is
                /// the primary key.</param>
                /// <param name="isEmbeddedInXML"></param>
                public IdentifierBagType(string role, string propertyRef, bool isEmbeddedInXML)
                        : base(role, propertyRef, isEmbeddedInXML) {
                                                                   }

                /// <summary>
                /// Instantiates a new <see cref="IPersistentCollection"/> for the identifier bag.
                /// </summary>
                /// <param name="session">The current <see cref="ISessionImplementor"/> for the identifier bag.</param>
                /// <param name="persister"></param>
                /// <param name="key"></param>
                /// <returns></returns>
                public override IPersistentCollection Instantiate(ISessionImplementor session, ICollectionPersister persister, object key)
                {
                        return new PersistentIdentifierBag(session);
                }

                /// <summary></summary>
                public override System.Type ReturnedClass
                {
                        get { return typeof(ICollection);
                            }
                }



Clone Instance
2
Line Count
21
Source Line
25
Source File
src/NHibernate/Type/MapType.cs

                /// <summary>
                /// Initializes a new instance of a <see cref="MapType"/> class for
                /// a specific role.
                /// </summary>
                /// <param name="role">The role the persistent collection is in.</param>
                /// <param name="propertyRef">The name of the property in the
                /// owner object containing the collection ID, or <see langword="null" /> if it is
                /// the primary key.</param>
                /// <param name="isEmbeddedInXML"></param>
                public MapType(string role, string propertyRef, bool isEmbeddedInXML)
                        : base(role, propertyRef, isEmbeddedInXML)
                {
                }

                /// <summary>
                /// Instantiates a new <see cref="IPersistentCollection"/> for the map.
                /// </summary>
                /// <param name="session">The current <see cref="ISessionImplementor"/> for the map.</param>
                /// <param name="persister"></param>
                /// <param name="key"></param>
                /// <returns></returns>
                public override IPersistentCollection Instantiate(ISessionImplementor session, ICollectionPersister persister, object key)
                {
                        return new PersistentMap(session);
                }

                /// <summary></summary>
                public override System.Type ReturnedClass
                {
                        get { return typeof(IDictionary);
                            }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

/// <summary>
/// Initializes a new instance of a <see cref="IdentifierBagType"/> class for
/// Initializes a new instance of a <see cref="MapType"/> class for
/// a specific role.
/// </summary>
/// <param name="role">The role the persistent collection is in.</param>
/// <param name="propertyRef">The name of the property in the
/// owner object containing the collection ID, or <see langword="null" /> if it is
/// the primary key.</param>
/// <param name="isEmbeddedInXML"></param>
public [[#variable5662ed80]](string role, string propertyRef, bool isEmbeddedInXML): base(role, propertyRef, isEmbeddedInXML)
{
}

/// <summary>
/// Instantiates a new <see cref="IPersistentCollection"/> for the identifier bag.
/// Instantiates a new <see cref="IPersistentCollection"/> for the map.
/// </summary>
/// <param name="session">The current <see cref="ISessionImplementor"/> for the identifier bag.</param>
/// <param name="session">The current <see cref="ISessionImplementor"/> for the map.</param>
/// <param name="persister"></param>
/// <param name="key"></param>
/// <returns></returns>
public override IPersistentCollection Instantiate(ISessionImplementor session, ICollectionPersister persister, object key)
{
   return new [[#variable2838fa80]](session);
}

/// <summary></summary>
public override System.Type ReturnedClass
{
   get
   {
      return typeof( [[#variable5662ed00]]);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5662ed80]]
IdentifierBagType 
12[[#5662ed80]]
MapType 
21[[#2838fa80]]
PersistentIdentifierBag 
22[[#2838fa80]]
PersistentMap 
31[[#5662ed00]]
ICollection 
32[[#5662ed00]]
IDictionary