| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 3 | 0.968 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 231 | src/NHibernate/Dialect/Dialect.cs |
| 2 | 15 | 2089 | src/NHibernate/Dialect/Dialect.cs |
| ||||
/// <summary>
/// The class (which implements <see cref="NHibernate.Id.IIdentifierGenerator"/>)
/// which acts as this dialects native generation strategy.
/// </summary>
/// <returns> The native generator class. </returns>
/// <remarks>
/// Comes into play whenever the user specifies the native generator.
/// </remarks>
public virtual System.Type NativeIdentifierGeneratorClass
{
get
{
if (SupportsIdentityColumns)
{
return typeof(IdentityGenerator);
}
else if (SupportsSequences)
{
return typeof(SequenceGenerator);
}
else
{
return typeof(TableHiLoGenerator);
}
}
}
|
| ||||
/// <summary>
/// The class (which implements <see cref="NHibernate.Id.IIdentifierGenerator"/>)
/// which acts as this dialects identity-style generation strategy.
/// </summary>
/// <returns> The native generator class. </returns>
/// <remarks>
/// Comes into play whenever the user specifies the "identity" generator.
/// </remarks>
public virtual System.Type IdentityStyleIdentifierGeneratorClass
{
get
{
if (SupportsIdentityColumns)
{
return typeof(IdentityGenerator);
}
else if (SupportsSequences)
{
return typeof(SequenceIdentityGenerator);
}
else
{
return typeof(TriggerIdentityGenerator);
}
}
}
|
| |||
/// <summary>
/// The class (which implements <see cref="NHibernate.Id.IIdentifierGenerator"/>)
/// which acts as this dialects identity-style generation strategy.
/// which acts as this dialects native generation strategy.
/// </summary>
/// <returns> The native generator class. </returns>
/// <remarks>
/// Comes into play whenever the user specifies the "identity" generator.
/// Comes into play whenever the user specifies the native generator.
/// </remarks>
public virtual System.Type [[#variable6ff4e8c0]]
{
get
{
if (SupportsIdentityColumns)
{
return typeof(IdentityGenerator);
}
else
if (SupportsSequences)
{
return typeof( [[#variable6ff4e860]]);
}
else
{
return typeof( [[#variable6ff4e7c0]]);
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6ff4e8c0]] | IdentityStyleIdentifierGeneratorClass |
| 1 | 2 | [[#6ff4e8c0]] | NativeIdentifierGeneratorClass |
| 2 | 1 | [[#6ff4e860]] | SequenceIdentityGenerator |
| 2 | 2 | [[#6ff4e860]] | SequenceGenerator |
| 3 | 1 | [[#6ff4e7c0]] | TriggerIdentityGenerator |
| 3 | 2 | [[#6ff4e7c0]] | TableHiLoGenerator |