Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.985 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 13 | src/NHibernate/Type/GenericIdentifierBagType.cs |
2 | 12 | 26 | src/NHibernate/Type/GenericSetType.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); } |
| ||||
/// <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); } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4c41e6a0]] | GenericSetType |
1 | 2 | [[#4c41e6a0]] | GenericIdentifierBagType |
2 | 1 | [[#4c41fde0]] | PersistentGenericSet |
2 | 2 | [[#4c41fde0]] | PersistentIdentifierBag |