CloneSet1320


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.985class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1813
src/NHibernate/Type/GenericIdentifierBagType.cs
21226
src/NHibernate/Type/GenericSetType.cs
Clone Instance
1
Line Count
8
Source Line
13
Source File
src/NHibernate/Type/GenericIdentifierBagType.cs

                public GenericIdentifierBagType(string role, string propertyRef)
                        : base(role, propertyRef, false)
                {
                }

                public override IPersistentCollection Instantiate(ISessionImplementor session, ICollectionPersister persister, object key)
                {
                        return new PersistentIdentifierBag<T> (session);
                }



Clone Instance
2
Line Count
12
Source Line
26
Source File
src/NHibernate/Type/GenericSetType.cs

                /// <summary>
                /// Initializes a new instance of a <see cref="GenericSetType{T}"/> 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>
                public GenericSetType(string role, string propertyRef)
                        : base(role, propertyRef, false) {
                                                         }

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



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Initializes a new instance of a <see cref="GenericSetType{T}"/> 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>
public [[#variable4c41e6a0]](string role, string propertyRef): base(role, propertyRef, false)
{
}

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

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c41e6a0]]
GenericSetType 
12[[#4c41e6a0]]
GenericIdentifierBagType 
21[[#4c41fde0]]
PersistentGenericSet 
22[[#4c41fde0]]
PersistentIdentifierBag