Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 2 | 0.971 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 50 | src/NHibernate/ReplicationMode.cs |
2 | 16 | 92 | src/NHibernate/ReplicationMode.cs |
| ||||
#endregion #region Nested type: IgnoreReplicationMode private sealed class IgnoreReplicationMode : ReplicationMode { public IgnoreReplicationMode(string name) : base(name) { } /// <summary> /// Ignore replicated entities when a row already exists /// </summary> public override bool ShouldOverwriteCurrentVersion(object entity, object currentVersion, object newVersion, IVersionType versionType) { return false; } } |
| ||||
#endregion #region Nested type: OverwriteReplicationMode private sealed class OverwriteReplicationMode : ReplicationMode { public OverwriteReplicationMode(string name) : base(name) { } /// <summary> /// Overwrite existing rows when a row already exists /// </summary> public override bool ShouldOverwriteCurrentVersion(object entity, object currentVersion, object newVersion, IVersionType versionType) { return true; } } |
| |||
#endregion #region Nested type: IgnoreReplicationMode #region Nested type: OverwriteReplicationMode private sealed class [[#variable4f651b80]]: ReplicationMode { public [[#variable4f651b80]](string name): base(name) { } /// <summary> /// Ignore replicated entities when a row already exists /// Overwrite existing rows when a row already exists /// </summary> public override bool ShouldOverwriteCurrentVersion(object entity, object currentVersion, object newVersion, IVersionType versionType) { return [[#variable4f651b00]]; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4f651b80]] | IgnoreReplicationMode |
1 | 2 | [[#4f651b80]] | OverwriteReplicationMode |
2 | 1 | [[#4f651b00]] | false |
2 | 2 | [[#4f651b00]] | true |