CloneSet652


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18230.982class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118294
src/NHibernate/Collection/AbstractPersistentCollection.cs
218314
src/NHibernate/Collection/AbstractPersistentCollection.cs
Clone Instance
1
Line Count
18
Source Line
294
Source File
src/NHibernate/Collection/AbstractPersistentCollection.cs

                protected bool ? ReadIndexExistence(object index)
                {
                        if ( !initialized)
                        {
                                ThrowLazyInitializationExceptionIfNotConnected();
                                CollectionEntry entry = session.PersistenceContext.GetCollectionEntry(this );
                                ICollectionPersister persister = entry.LoadedPersister;
                                if (persister.IsExtraLazy)
                                {
                                        if (HasQueuedOperations)
                                        {
                                                session.Flush();
                                        }
                                        return persister.IndexExists(entry.LoadedKey, index, session);
                                }
                        }
                        Read();
                        return null;
                }



Clone Instance
2
Line Count
18
Source Line
314
Source File
src/NHibernate/Collection/AbstractPersistentCollection.cs

                protected bool ? ReadElementExistence(object element)
                {
                        if ( !initialized)
                        {
                                ThrowLazyInitializationExceptionIfNotConnected();
                                CollectionEntry entry = session.PersistenceContext.GetCollectionEntry(this );
                                ICollectionPersister persister = entry.LoadedPersister;
                                if (persister.IsExtraLazy)
                                {
                                        if (HasQueuedOperations)
                                        {
                                                session.Flush();
                                        }
                                        return persister.ElementExists(entry.LoadedKey, element, session);
                                }
                        }
                        Read();
                        return null;
                }



Clone AbstractionParameter Count: 3Parameter Bindings

protected bool ? [[#variable54ad2200]](object [[#variable54ae8960]])
{
   if ( !initialized)
   {
      ThrowLazyInitializationExceptionIfNotConnected();
      CollectionEntry entry = session.PersistenceContext.GetCollectionEntry(this );
      ICollectionPersister persister = entry.LoadedPersister;
      if (persister.IsExtraLazy)
      {
         if (HasQueuedOperations)
         {
            session.Flush();
         }
         return persister. [[#variable54ad2260]](entry.LoadedKey, [[#variable54ae8960]], session);
      }
   }
   Read();
   return null;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54ad2200]]
ReadIndexExistence 
12[[#54ad2200]]
ReadElementExistence 
21[[#54ae8960]]
index 
22[[#54ae8960]]
element 
31[[#54ad2260]]
IndexExists 
32[[#54ad2260]]
ElementExists