Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.963 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 113 | src/NHibernate/Mapping/Column.cs |
2 | 3 | 503 | src/NHibernate/Mapping/Table.cs |
| ||||
/// <summary> /// Gets the name of this Column in quoted form if it is necessary. /// </summary> /// <param name="d"> /// The <see cref="Dialect.Dialect"/> that knows how to quote /// the column name. /// </param> /// <returns> /// The column name in a form that is safe to use inside of a SQL statement. /// Quoted if it needs to be, not quoted if it does not need to be. /// </returns> public string GetQuotedName(Dialect.Dialect d) { return IsQuoted ? d.QuoteForColumnName(name): name; } |
| ||||
/// <summary> /// Gets the name of this Table in quoted form if it is necessary. /// </summary> /// <param name="dialect"> /// The <see cref="Dialect.Dialect"/> that knows how to quote the Table name. /// </param> /// <returns> /// The Table name in a form that is safe to use inside of a SQL statement. /// Quoted if it needs to be, not quoted if it does not need to be. /// </returns> public string GetQuotedName(Dialect.Dialect dialect) { return IsQuoted ? dialect.QuoteForTableName(name): name; } |
| |||
/// <summary> /// Gets the name of this Column in quoted form if it is necessary. /// Gets the name of this Table in quoted form if it is necessary. /// </summary> /// <param name="d"> /// The <see cref="Dialect.Dialect"/> that knows how to quote /// the column name. /// <param name="dialect"> /// The <see cref="Dialect.Dialect"/> that knows how to quote the Table name. /// </param> /// <returns> /// The column name in a form that is safe to use inside of a SQL statement. /// The Table name in a form that is safe to use inside of a SQL statement. /// Quoted if it needs to be, not quoted if it does not need to be. /// </returns> public string GetQuotedName(Dialect.Dialect [[#variable6fd57d40]]) { return IsQuoted ? [[#variable6fd57d40]]. [[#variable6fd57cc0]](name): name; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fd57d40]] | d |
1 | 2 | [[#6fd57d40]] | dialect |
2 | 1 | [[#6fd57cc0]] | QuoteForColumnName |
2 | 2 | [[#6fd57cc0]] | QuoteForTableName |