Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
47 | 2 | 3 | 0.973 | interface_member_declarations[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 47 | 744 | src/NHibernate/ISession.cs |
2 | 56 | 133 | src/NHibernate/IStatelessSession.cs |
| ||||
/// <summary> /// Creates a new <c>Criteria</c> for the entity class. /// </summary> /// <typeparam name="T">The entity class</typeparam> /// <returns>An ICriteria object</returns> ICriteria CreateCriteria<T>() where T: class ; /// <summary> /// Creates a new <c>Criteria</c> for the entity class with a specific alias /// </summary> /// <typeparam name="T">The entity class</typeparam> /// <param name="alias">The alias of the entity</param> /// <returns>An ICriteria object</returns> ICriteria CreateCriteria<T>(string alias) where T: class ; /// <summary> /// Creates a new <c>Criteria</c> for the entity class. /// </summary> /// <param name="persistentClass">The class to Query</param> /// <returns>An ICriteria object</returns> ICriteria CreateCriteria(System.Type persistentClass); /// <summary> /// Creates a new <c>Criteria</c> for the entity class with a specific alias /// </summary> /// <param name="persistentClass">The class to Query</param> /// <param name="alias">The alias of the entity</param> /// <returns>An ICriteria object</returns> ICriteria CreateCriteria(System.Type persistentClass, string alias); /// <summary> /// Create a new <c>Criteria</c> instance, for the given entity name. /// </summary> /// <param name="entityName">The name of the entity to Query</param> /// <returns>An ICriteria object</returns> ICriteria CreateCriteria(string entityName); /// <summary> /// Create a new <c>Criteria</c> instance, for the given entity name, /// with the given alias. /// </summary> /// <param name="entityName">The name of the entity to Query</param> /// <param name="alias">The alias of the entity</param> /// <returns>An ICriteria object</returns> ICriteria CreateCriteria(string entityName, string alias); /// <summary> /// Create a new instance of <c>Query</c> for the given query string /// </summary> /// <param name="queryString">A hibernate query string</param> /// <returns>The query</returns> IQuery CreateQuery(string queryString); |
| ||||
/// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class. /// </summary> /// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria<T>() where T: class ; /// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class, with the given alias. /// </summary> /// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam> /// <param name="alias">The alias of the entity</param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria<T>(string alias) where T: class ; /// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class. /// </summary> /// <param name="entityType">A class, which is persistent, or has persistent subclasses</param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(System.Type entityType); /// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class, with the given alias. /// </summary> /// <param name="entityType">A class, which is persistent, or has persistent subclasses</param> /// <param name="alias">The alias of the entity</param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(System.Type entityType, string alias); /// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity name. /// </summary> /// <param name="entityName">The entity name. </param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(string entityName); /// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity name, /// with the given alias. /// </summary> /// <param name="entityName">The entity name. </param> /// <param name="alias">The alias of the entity</param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(string entityName, string alias); /// <summary> /// Create a new instance of <see cref="ISQLQuery"/> for the given SQL query string. /// Entities returned by the query are detached. /// </summary> /// <param name="queryString">a SQL query </param> /// <returns> The <see cref="ISQLQuery"/> </returns> ISQLQuery CreateSQLQuery(string queryString); |
| |||
/// <summary> /// Creates a new <c>Criteria</c> for the entity class. /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class. /// </summary> /// <typeparam name="T">The entity class</typeparam> /// <returns>An ICriteria object</returns> /// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria<T>() where T: class ; /// <summary> /// Creates a new <c>Criteria</c> for the entity class with a specific alias /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class, with the given alias. /// </summary> /// <typeparam name="T">The entity class</typeparam> /// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam> /// <param name="alias">The alias of the entity</param> /// <returns>An ICriteria object</returns> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria<T>(string alias) where T: class ; /// <summary> /// Creates a new <c>Criteria</c> for the entity class. /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class. /// </summary> /// <param name="persistentClass">The class to Query</param> /// <returns>An ICriteria object</returns> /// <param name="entityType">A class, which is persistent, or has persistent subclasses</param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(System.Type [[#variable6879eec0]]); /// <summary> /// Creates a new <c>Criteria</c> for the entity class with a specific alias /// Create a new <see cref="ICriteria"/> instance, for the given entity class, /// or a superclass of an entity class, with the given alias. /// </summary> /// <param name="persistentClass">The class to Query</param> /// <param name="entityType">A class, which is persistent, or has persistent subclasses</param> /// <param name="alias">The alias of the entity</param> /// <returns>An ICriteria object</returns> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(System.Type [[#variable6879eec0]], string alias); /// <summary> /// Create a new <c>Criteria</c> instance, for the given entity name. /// Create a new <see cref="ICriteria"/> instance, for the given entity name. /// </summary> /// <param name="entityName">The name of the entity to Query</param> /// <returns>An ICriteria object</returns> /// <param name="entityName">The entity name. </param> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(string entityName); /// <summary> /// Create a new <c>Criteria</c> instance, for the given entity name, /// with the given alias. /// <summary> /// Create a new <see cref="ICriteria"/> instance, for the given entity name, /// with the given alias. /// </summary> /// <param name="entityName">The name of the entity to Query</param> /// <param name="entityName">The entity name. </param> /// <param name="alias">The alias of the entity</param> /// <returns>An ICriteria object</returns> /// <returns> The <see cref="ICriteria"/>. </returns> /// <remarks>Entities returned by the query are detached.</remarks> ICriteria CreateCriteria(string entityName, string alias); [[#variable6879edc0]] [[#variable6879eb00]](string queryString); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6879eec0]] | persistentClass |
1 | 2 | [[#6879eec0]] | entityType |
2 | 1 | [[#6879edc0]] | /// <summary> /// Create a new instance of <c>Query</c> for the given query string /// </summary> /// <param name="queryString">A hibernate query string</param> /// <returns>The query</returns> IQuery |
2 | 2 | [[#6879edc0]] | /// <summary> /// Create a new instance of <see cref="ISQLQuery"/> for the given SQL query string. /// Entities returned by the query are detached. /// </summary> /// <param name="queryString">a SQL query </param> /// <returns> The <see cref="ISQLQuery"/> </returns> ISQLQuery |
3 | 1 | [[#6879eb00]] | CreateQuery |
3 | 2 | [[#6879eb00]] | CreateSQLQuery |