Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.967 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 1 | src/NHibernate/Event/Default/DefaultPersistOnFlushEventListener.cs |
2 | 15 | 1 | src/NHibernate/Event/Default/DefaultSaveOrUpdateCopyEventListener.cs |
| ||||
using System; using NHibernate.Engine; namespace NHibernate.Event.Default { /// <summary> When persist is used as the cascade action, persistOnFlush should be used</summary> [Serializable] public class DefaultPersistOnFlushEventListener : DefaultPersistEventListener { protected override CascadingAction CascadeAction { get { return CascadingAction.PersistOnFlush; } } } } |
| ||||
using System; using NHibernate.Engine; namespace NHibernate.Event.Default { [Serializable] public class DefaultSaveOrUpdateCopyEventListener : DefaultMergeEventListener { protected override CascadingAction CascadeAction { get { return CascadingAction.SaveUpdateCopy; } } } } |
| |||
using System; using NHibernate.Engine; namespace NHibernate.Event.Default { /// <summary> When persist is used as the cascade action, persistOnFlush should be used</summary> [Serializable] public class [[#variable6765a940]]: [[#variable6765a880]] { protected override CascadingAction CascadeAction { get { return CascadingAction. [[#variable6765a820]]; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6765a940]] | DefaultPersistOnFlushEventListener |
1 | 2 | [[#6765a940]] | DefaultSaveOrUpdateCopyEventListener |
2 | 1 | [[#6765a880]] | DefaultPersistEventListener |
2 | 2 | [[#6765a880]] | DefaultMergeEventListener |
3 | 1 | [[#6765a820]] | PersistOnFlush |
3 | 2 | [[#6765a820]] | SaveUpdateCopy |