Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
38 | 2 | 4 | 0.960 | class_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 38 | 68 | src/NHibernate/Properties/BackrefPropertyAccessor.cs |
2 | 38 | 67 | src/NHibernate/Properties/IndexPropertyAccessor.cs |
| ||||
private readonly BackrefPropertyAccessor encloser; public BackrefGetter(BackrefPropertyAccessor encloser) { this.encloser = encloser; } #region IGetter Members public object Get(object target) { return Unknown; } public System.Type ReturnType { get { return typeof(object); } } public string PropertyName { get { return null; } } public MethodInfo Method { get { return null; } } public object GetForInsert(object owner, IDictionary mergeMap, ISessionImplementor session) { if (session == null) { return Unknown; } else { return session.PersistenceContext.GetOwnerId(encloser.entityName, encloser.propertyName, owner, mergeMap); } } |
| ||||
private readonly IndexPropertyAccessor encloser; public IndexGetter(IndexPropertyAccessor encloser) { this.encloser = encloser; } #region IGetter Members public object Get(object target) { return BackrefPropertyAccessor.Unknown; } public System.Type ReturnType { get { return typeof( object); } } public string PropertyName { get { return null; } } public MethodInfo Method { get { return null; } } public object GetForInsert(object owner, IDictionary mergeMap, ISessionImplementor session) { if (session == null) { return BackrefPropertyAccessor.Unknown; } else { return session.PersistenceContext.GetIndexInOwner(encloser.entityName, encloser.propertyName, owner, mergeMap); } } |
| |||
private readonly [[#variable550ae7a0]]encloser; public [[#variable550ae700]]( [[#variable550ae7a0]]encloser) { this.encloser = encloser; } #region IGetter Members public object Get(object target) { return [[#variable550ae660]]; } public System.Type ReturnType { get { return typeof(object); } } public string PropertyName { get { return null; } } public MethodInfo Method { get { return null; } } public object GetForInsert(object owner, IDictionary mergeMap, ISessionImplementor session) { if (session == null) { return [[#variable550ae660]]; } else { return session.PersistenceContext. [[#variable550ae600]](encloser.entityName, encloser.propertyName, owner, mergeMap); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#550ae7a0]] | IndexPropertyAccessor |
1 | 2 | [[#550ae7a0]] | BackrefPropertyAccessor |
2 | 1 | [[#550ae700]] | IndexGetter |
2 | 2 | [[#550ae700]] | BackrefGetter |
3 | 1 | [[#550ae660]] | BackrefPropertyAccessor.Unknown |
3 | 2 | [[#550ae660]] | Unknown |
4 | 1 | [[#550ae600]] | GetIndexInOwner |
4 | 2 | [[#550ae600]] | GetOwnerId |