CloneSet1151


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47230.973interface_member_declarations[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
147744
src/NHibernate/ISession.cs
256133
src/NHibernate/IStatelessSession.cs
Clone Instance
1
Line Count
47
Source Line
744
Source File
src/NHibernate/ISession.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);


Clone Instance
2
Line Count
56
Source Line
133
Source File
src/NHibernate/IStatelessSession.cs

                /// <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);


Clone AbstractionParameter Count: 3Parameter Bindings

/// <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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6879eec0]]
persistentClass 
12[[#6879eec0]]
entityType 
21[[#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 
22[[#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 
31[[#6879eb00]]
CreateQuery 
32[[#6879eb00]]
CreateSQLQuery