CloneSet637


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.965namespace_member_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1214
src/NHibernate/Event/PostUpdateEvent.cs
2273
src/NHibernate/Event/PreUpdateEvent.cs
Clone Instance
1
Line Count
21
Source Line
4
Source File
src/NHibernate/Event/PostUpdateEvent.cs

namespace NHibernate.Event
{
        /// <summary> 
        /// Occurs after the datastore is updated
        /// </summary>
        [Serializable]
        public class PostUpdateEvent : AbstractPostDatabaseOperationEvent
        {
                public PostUpdateEvent(object entity, object id, object[] state, object[] oldState, IEntityPersister persister, IEventSource source)
                        : base(source, entity, id, persister)
                {
                        State = state;
                        OldState = oldState;
                }

                public object[] State
                {                       get ; private set ;
                }

                public object[] OldState
                {                          get ; private set ;
                }

        }
}


Clone Instance
2
Line Count
27
Source Line
3
Source File
src/NHibernate/Event/PreUpdateEvent.cs

namespace NHibernate.Event
{
        /// <summary> 
        /// Represents a <tt>pre-update</tt> event, which occurs just prior to
        /// performing the update of an entity in the database.
        /// </summary>
        public class PreUpdateEvent : AbstractPreDatabaseOperationEvent
        {
                public PreUpdateEvent(object entity, object id, object[] state, object[] oldState, IEntityPersister persister,
                                      IEventSource source) : base(source, entity, id, persister)
                {
                        State = state;
                        OldState = oldState;
                }

                /// <summary>
                /// Retrieves the state to be used in the update.
                /// </summary>
                public object[] State
                {                       get ; private set ;
                }

                /// <summary>
                /// The old state of the entity at the time it was last loaded from the
                /// database; can be null in the case of detached entities.
                /// </summary>
                public object[] OldState
                {                          get ; private set ;
                }

        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

namespace NHibernate.Event
{
    [[#variable56a7bd60]]
   /// <summary> 
   /// Represents a <tt>pre-update</tt> event, which occurs just prior to
   /// performing the update of an entity in the database.
   /// </summary>
   public class [[#variable56a7bce0]]: [[#variable56a7bc60]]
   {
      public [[#variable56a7bce0]](object entity, object id, object[] state, object[] oldState, IEntityPersister persister, IEventSource source): base(source, entity, id, persister)
      {
         State = state;
         OldState = oldState;
      }

      /// <summary>
      /// Retrieves the state to be used in the update.
      /// </summary>
      public object[] State
      {
         get ;
         private set ;
      }

      /// <summary>
      /// The old state of the entity at the time it was last loaded from the
      /// database; can be null in the case of detached entities.
      /// </summary>
      public object[] OldState
      {
         get ;
         private set ;
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56a7bd60]]
/// <summary> 
/// Occurs after the datastore is updated
/// </summary>
[Serializable] 
12[[#56a7bd60]]
21[[#56a7bce0]]
PostUpdateEvent 
22[[#56a7bce0]]
PreUpdateEvent 
31[[#56a7bc60]]
AbstractPostDatabaseOperationEvent 
32[[#56a7bc60]]
AbstractPreDatabaseOperationEvent