CloneSet377


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
38240.960class_member_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13868
src/NHibernate/Properties/BackrefPropertyAccessor.cs
23867
src/NHibernate/Properties/IndexPropertyAccessor.cs
Clone Instance
1
Line Count
38
Source Line
68
Source File
src/NHibernate/Properties/BackrefPropertyAccessor.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);
                                }
                        }



Clone Instance
2
Line Count
38
Source Line
67
Source File
src/NHibernate/Properties/IndexPropertyAccessor.cs

                        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);
                                }
                        }



Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#550ae7a0]]
IndexPropertyAccessor 
12[[#550ae7a0]]
BackrefPropertyAccessor 
21[[#550ae700]]
IndexGetter 
22[[#550ae700]]
BackrefGetter 
31[[#550ae660]]
BackrefPropertyAccessor.Unknown 
32[[#550ae660]]
Unknown 
41[[#550ae600]]
GetIndexInOwner 
42[[#550ae600]]
GetOwnerId