CloneSet111


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
53210.994class_member_declarations[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15370
src/NHibernate/Type/ClassMetaType.cs
25365
src/NHibernate/Type/MetaType.cs
Clone Instance
1
Line Count
53
Source Line
70
Source File
src/NHibernate/Type/ClassMetaType.cs

                public override string ToLoggableString(object value, ISessionFactoryImplementor factory)
                {
                        return ToXMLString(value, factory);
                }

                public override string Name
                {
                        get { return "ClassMetaType";
                            }
                }

                public override object DeepCopy(object value, EntityMode entityMode, ISessionFactoryImplementor factory)
                {
                        return value;
                }

                public override bool IsMutable
                {
                        get { return false;
                            }
                }

                public override bool IsDirty(object old, object current, bool[] checkable, ISessionImplementor session)
                {
                        return checkable[0] && IsDirty(old, current, session);
                }

                public override object FromXMLNode(XmlNode xml, IMapping factory)
                {
                        return FromXMLString(xml.Value, factory);
                }

                public object FromXMLString(string xml, IMapping factory)
                {
                        return xml; //xml is the entity name
                }

                public override object Replace(object original, object current, ISessionImplementor session, object owner, System.Collections.IDictionary copiedAlready)
                {
                        return original;
                }

                public override void SetToXMLNode(XmlNode node, object value, ISessionFactoryImplementor factory)
                {
                        node.Value = ToXMLString(value, factory);
                }

                public override bool[] ToColumnNullness(object value, IMapping mapping)
                {
                        throw new NotSupportedException();
                }

                public string ToXMLString(object value, ISessionFactoryImplementor factory)
                {
                        return (string)value; //value is the entity name
                }



Clone Instance
2
Line Count
53
Source Line
65
Source File
src/NHibernate/Type/MetaType.cs

                public override string ToLoggableString(object value, ISessionFactoryImplementor factory)
                {
                        return ToXMLString(value, factory);
                }

                public override string Name
                {
                        get { return baseType.Name;
                            }                         //TODO!
                }

                public override object DeepCopy(object value, EntityMode entityMode, ISessionFactoryImplementor factory)
                {
                        return value;
                }

                public override bool IsMutable
                {
                        get { return false;
                            }
                }

                public override bool IsDirty(object old, object current, bool[] checkable, ISessionImplementor session)
                {
                        return checkable[0] && IsDirty(old, current, session);
                }

                public override object FromXMLNode(XmlNode xml, IMapping factory)
                {
                        return FromXMLString(xml.Value, factory);
                }

                public object FromXMLString(string xml, IMapping factory)
                {
                        return xml; //xml is the entity name
                }

                public override object Replace(object original, object current, ISessionImplementor session, object owner, System.Collections.IDictionary copiedAlready)
                {
                        return original;
                }

                public override void SetToXMLNode(XmlNode node, object value, ISessionFactoryImplementor factory)
                {
                        node.Value = ToXMLString(value, factory);
                }

                public override bool[] ToColumnNullness(object value, IMapping mapping)
                {
                        throw new NotSupportedException();
                }

                public string ToXMLString(object value, ISessionFactoryImplementor factory)
                {
                        return (string)value; //value is the entity name
                }



Clone AbstractionParameter Count: 1Parameter Bindings

public override string ToLoggableString(object value, ISessionFactoryImplementor factory)
{
   return ToXMLString(value, factory);
}

public override string Name
{
   get
   {
      return [[#variable553725c0]];
   } //TODO!
}

public override object DeepCopy(object value, EntityMode entityMode, ISessionFactoryImplementor factory)
{
   return value;
}

public override bool IsMutable
{
   get
   {
      return false;
   }
}

public override bool IsDirty(object old, object current, bool[] checkable, ISessionImplementor session)
{
   return checkable[0] && IsDirty(old, current, session);
}

public override object FromXMLNode(XmlNode xml, IMapping factory)
{
   return FromXMLString(xml.Value, factory);
}

public object FromXMLString(string xml, IMapping factory)
{
   return xml; //xml is the entity name
}

public override object Replace(object original, object current, ISessionImplementor session, object owner, System.Collections.IDictionary copiedAlready)
{
   return original;
}

public override void SetToXMLNode(XmlNode node, object value, ISessionFactoryImplementor factory)
{
   node.Value = ToXMLString(value, factory);
}

public override bool[] ToColumnNullness(object value, IMapping mapping)
{
   throw new NotSupportedException();
}

public string ToXMLString(object value, ISessionFactoryImplementor factory)
{
   return (string)value; //value is the entity name
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#553725c0]]
baseType.Name 
12[[#553725c0]]
"ClassMetaType"