Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 2 | 0.978 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 1200 | src/NHibernate/Dialect/Dialect.cs |
2 | 21 | 1245 | src/NHibernate/Dialect/Dialect.cs |
| ||||
/// <summary> /// Generate the appropriate select statement to to retreive the next value /// of a sequence. /// </summary> /// <param name="sequenceName">the name of the sequence </param> /// <returns> String The "nextval" select string. </returns> /// <remarks>This should be a "stand alone" select statement.</remarks> public virtual string GetSequenceNextValString(string sequenceName) { throw new MappingException("Dialect does not support sequences"); } /// <summary> /// Typically dialects which support sequences can drop a sequence /// with a single command. /// </summary> /// <param name="sequenceName">The name of the sequence </param> /// <returns> The sequence drop commands </returns> /// <remarks> /// This is convenience form of <see cref="GetDropSequenceStrings"/> /// to help facilitate that. /// /// Dialects which support sequences and can drop a sequence in a /// single command need *only* override this method. Dialects /// which support sequences but require multiple commands to drop /// a sequence should instead override <see cref="GetDropSequenceStrings"/>. /// </remarks> public virtual string GetDropSequenceString(string sequenceName) { throw new MappingException("Dialect does not support sequences"); } |
| ||||
/// <summary> /// Generate the select expression fragment that will retrieve the next /// value of a sequence as part of another (typically DML) statement. /// </summary> /// <param name="sequenceName">the name of the sequence </param> /// <returns> The "nextval" fragment. </returns> /// <remarks> /// This differs from <see cref="GetSequenceNextValString"/> in that this /// should return an expression usable within another statement. /// </remarks> public virtual string GetSelectSequenceNextValString(string sequenceName) { throw new MappingException("Dialect does not support sequences"); } /// <summary> /// Typically dialects which support sequences can create a sequence /// with a single command. /// </summary> /// <param name="sequenceName">The name of the sequence </param> /// <returns> The sequence creation command </returns> /// <remarks> /// This is convenience form of <see cref="GetCreateSequenceStrings(string,int,int)"/> to help facilitate that. /// Dialects which support sequences and can create a sequence in a /// single command need *only* override this method. Dialects /// which support sequences but require multiple commands to create /// a sequence should instead override <see cref="GetCreateSequenceStrings(string,int,int)"/>. /// </remarks> public virtual string GetCreateSequenceString(string sequenceName) { throw new MappingException("Dialect does not support sequences"); } |
| |||
/// <summary> /// Generate the appropriate select statement to to retreive the next value /// of a sequence. /// Generate the select expression fragment that will retrieve the next /// value of a sequence as part of another (typically DML) statement. /// </summary> /// <param name="sequenceName">the name of the sequence </param> /// <returns> String The "nextval" select string. </returns> /// <remarks>This should be a "stand alone" select statement.</remarks> /// <returns> The "nextval" fragment. </returns> /// <remarks> /// This differs from <see cref="GetSequenceNextValString"/> in that this /// should return an expression usable within another statement. /// </remarks> public virtual string [[#variable55101400]](string sequenceName) { throw new MappingException("Dialect does not support sequences"); } /// <summary> /// Typically dialects which support sequences can drop a sequence /// with a single command. /// Typically dialects which support sequences can create a sequence /// with a single command. /// </summary> /// <param name="sequenceName">The name of the sequence </param> /// <returns> The sequence drop commands </returns> /// <returns> The sequence creation command </returns> /// <remarks> /// This is convenience form of <see cref="GetDropSequenceStrings"/> /// to help facilitate that. /// /// Dialects which support sequences and can drop a sequence in a /// This is convenience form of <see cref="GetCreateSequenceStrings(string,int,int)"/> to help facilitate that. /// Dialects which support sequences and can create a sequence in a /// single command need *only* override this method. Dialects /// which support sequences but require multiple commands to drop /// a sequence should instead override <see cref="GetDropSequenceStrings"/>. /// which support sequences but require multiple commands to create /// a sequence should instead override <see cref="GetCreateSequenceStrings(string,int,int)"/>. /// </remarks> public virtual string [[#variable551013e0]](string sequenceName) { throw new MappingException("Dialect does not support sequences"); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#55101400]] | GetSequenceNextValString |
1 | 2 | [[#55101400]] | GetSelectSequenceNextValString |
2 | 1 | [[#551013e0]] | GetDropSequenceString |
2 | 2 | [[#551013e0]] | GetCreateSequenceString |