Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 3 | 0.983 | class_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 25 | src/NHibernate/Type/IdentifierBagType.cs |
2 | 21 | 25 | src/NHibernate/Type/MapType.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); } } |
| ||||
/// <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); } } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5662ed80]] | IdentifierBagType |
1 | 2 | [[#5662ed80]] | MapType |
2 | 1 | [[#2838fa80]] | PersistentIdentifierBag |
2 | 2 | [[#2838fa80]] | PersistentMap |
3 | 1 | [[#5662ed00]] | ICollection |
3 | 2 | [[#5662ed00]] | IDictionary |