CloneSet2083


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16230.967compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1161
src/NHibernate/Event/Default/DefaultPersistOnFlushEventListener.cs
2151
src/NHibernate/Event/Default/DefaultSaveOrUpdateCopyEventListener.cs
Clone Instance
1
Line Count
16
Source Line
1
Source File
src/NHibernate/Event/Default/DefaultPersistOnFlushEventListener.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;
                            }
                }

        }
}


Clone Instance
2
Line Count
15
Source Line
1
Source File
src/NHibernate/Event/Default/DefaultSaveOrUpdateCopyEventListener.cs

using System;
using NHibernate.Engine;

namespace NHibernate.Event.Default
{
        [Serializable]
        public class DefaultSaveOrUpdateCopyEventListener : DefaultMergeEventListener
        {
                protected override CascadingAction CascadeAction
                {
                        get { return CascadingAction.SaveUpdateCopy;
                            }
                }

        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6765a940]]
DefaultPersistOnFlushEventListener 
12[[#6765a940]]
DefaultSaveOrUpdateCopyEventListener 
21[[#6765a880]]
DefaultPersistEventListener 
22[[#6765a880]]
DefaultMergeEventListener 
31[[#6765a820]]
PersistOnFlush 
32[[#6765a820]]
SaveUpdateCopy