Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.953 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 97 | src/NHibernate/Mapping/PersistentClass.cs |
2 | 18 | 125 | src/NHibernate/Mapping/PersistentClass.cs |
| ||||
/// <summary> /// Gets the <see cref="System.Type"/> that is being mapped. /// </summary> /// <value>The <see cref="System.Type"/> that is being mapped.</value> /// <remarks> /// The value of this is set by the <c>name</c> attribute on the <c><class></c> /// element. /// </remarks> public virtual System.Type MappedClass { get { if (mappedClass == null) { if (className == null) return null; try { mappedClass = ReflectHelper.ClassForName(className); } catch (Exception cnfe) { throw new MappingException("entity class not found: " + className, cnfe); } } return mappedClass; } } |
| ||||
/// <summary> /// Gets or sets the <see cref="System.Type"/> to use as a Proxy. /// </summary> /// <value>The <see cref="System.Type"/> to use as a Proxy.</value> /// <remarks> /// The value of this is set by the <c>proxy</c> attribute. /// </remarks> public virtual System.Type ProxyInterface { get { if (proxyInterface == null) { if (proxyInterfaceName == null) return null; try { proxyInterface = ReflectHelper.ClassForName(proxyInterfaceName); } catch (Exception cnfe) { throw new MappingException("proxy class not found: " + proxyInterfaceName, cnfe); } } return proxyInterface; } } |
| |||
/// <summary> /// Gets or sets the <see cref="System.Type"/> to use as a Proxy. /// Gets the <see cref="System.Type"/> that is being mapped. /// </summary> /// <value>The <see cref="System.Type"/> to use as a Proxy.</value> /// <value>The <see cref="System.Type"/> that is being mapped.</value> /// <remarks> /// The value of this is set by the <c>proxy</c> attribute. /// The value of this is set by the <c>name</c> attribute on the <c><class></c> /// element. /// </remarks> public virtual System.Type [[#variable584913a0]] { get { if ( [[#variable58491320]]== null) { if ( [[#variable58491280]]== null) return null; try { [[#variable58491320]]= ReflectHelper.ClassForName( [[#variable58491280]]); } catch (Exception cnfe) { throw new MappingException( [[#variable584911a0]]+ [[#variable58491280]], cnfe); } } return [[#variable58491320]]; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#584913a0]] | ProxyInterface |
1 | 2 | [[#584913a0]] | MappedClass |
2 | 1 | [[#58491320]] | proxyInterface |
2 | 2 | [[#58491320]] | mappedClass |
3 | 1 | [[#58491280]] | proxyInterfaceName |
3 | 2 | [[#58491280]] | className |
4 | 1 | [[#584911a0]] | "proxy class not found: " |
4 | 2 | [[#584911a0]] | "entity class not found: " |