Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 3 | 0.982 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 294 | src/NHibernate/Collection/AbstractPersistentCollection.cs |
2 | 18 | 314 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54ad2200]] | ReadIndexExistence |
1 | 2 | [[#54ad2200]] | ReadElementExistence |
2 | 1 | [[#54ae8960]] | index |
2 | 2 | [[#54ae8960]] | element |
3 | 1 | [[#54ad2260]] | IndexExists |
3 | 2 | [[#54ad2260]] | ElementExists |