| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 53 | 2 | 1 | 0.994 | class_member_declarations[11] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 53 | 70 | src/NHibernate/Type/ClassMetaType.cs |
| 2 | 53 | 65 | src/NHibernate/Type/MetaType.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
}
|
| ||||
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
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#553725c0]] | baseType.Name |
| 1 | 2 | [[#553725c0]] | "ClassMetaType" |