CloneSet1431


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27230.976compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1271
src/NHibernate/Criterion/Conjunction.cs
2271
src/NHibernate/Criterion/Disjunction.cs
Clone Instance
1
Line Count
27
Source Line
1
Source File
src/NHibernate/Criterion/Conjunction.cs

using System;
using NHibernate.SqlCommand;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that Junctions together multiple 
        /// <see cref="ICriterion"/>s with an <c>and</c>
        /// </summary>
        [Serializable]
        public class Conjunction : Junction
        {
                /// <summary>
                /// Get the Sql operator to put between multiple <see cref="ICriterion"/>s.
                /// </summary>
                /// <value>The string "<c> and </c>"</value>
                protected override string Op
                {
                        get { return " and ";
                            }
                }

                protected override SqlString EmptyExpression
                {
                        get { return new SqlString("1=1");
                            }
                }

        }
}


Clone Instance
2
Line Count
27
Source Line
1
Source File
src/NHibernate/Criterion/Disjunction.cs

using System;
using NHibernate.SqlCommand;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that Junctions together multiple 
        /// <see cref="ICriterion"/>s with an <c>or</c>
        /// </summary>
        [Serializable]
        public class Disjunction : Junction
        {
                /// <summary>
                /// Get the Sql operator to put between multiple <see cref="ICriterion"/>s.
                /// </summary>
                /// <value>The string "<c> or </c>"</value>
                protected override string Op
                {
                        get { return " or ";
                            }
                }

                protected override SqlString EmptyExpression
                {
                        get { return new SqlString("1=0");
                            }
                }

        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

using System;
using NHibernate.SqlCommand;
namespace NHibernate.Criterion
{
   /// <summary>
   /// An <see cref="ICriterion"/> that Junctions together multiple 
   /// <see cref="ICriterion"/>s with an <c>and</c>
   /// <see cref="ICriterion"/>s with an <c>or</c>
   /// </summary>
   [Serializable]
   public class [[#variable27f2e120]]: Junction
   {
      /// <summary>
      /// Get the Sql operator to put between multiple <see cref="ICriterion"/>s.
      /// </summary>
      /// <value>The string "<c> and </c>"</value>
      /// <value>The string "<c> or </c>"</value>
      protected override string Op
      {
         get
         {
            return [[#variable27f2e0c0]];
         }
      }

      protected override SqlString EmptyExpression
      {
         get
         {
            return new SqlString( [[#variable27f2e040]]);
         }
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27f2e120]]
Conjunction 
12[[#27f2e120]]
Disjunction 
21[[#27f2e0c0]]
" and " 
22[[#27f2e0c0]]
" or " 
31[[#27f2e040]]
"1=1" 
32[[#27f2e040]]
"1=0"