コード例 #1
0
 public SelectColumnClauseBuilderImpl(SQLVendor vendor)
     : base(vendor)
 {
     this._selectAll  = false;
     this._cols       = new List <ColumnReferenceInfo>();
     this._quantifier = SetQuantifier.All;
 }
コード例 #2
0
        public QueryExpressionBodyBinaryImpl(SQLVendorImpl vendor, SetOperations setOperation, CorrespondingSpec correspondingSpec, QueryExpressionBody left, QueryExpressionBody right, SetQuantifier setQuantifier)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(left), left);
            ArgumentValidator.ValidateNotNull(nameof(right), right);

            this._setOperation      = setOperation;
            this._correspondingSpec = correspondingSpec;
            this._left          = left;
            this._right         = right;
            this._setQuantifier = setQuantifier;
        }
コード例 #3
0
        public ColumnReferencesImpl(SQLVendorImpl vendor, SetQuantifier setQuantifier, ImmutableArray <ColumnReferenceInfo> columns)
            : base(vendor, setQuantifier)
        {
            ArgumentValidator.ValidateNotNull(nameof(columns), columns);
            if (columns.Length <= 0)
            {
                throw new ArgumentException("Select column list must have at least one column reference.");
            }
            foreach (var col in columns)
            {
                ArgumentValidator.ValidateNotNull(nameof(col), col);
            }

            this._columns = columns;
        }
コード例 #4
0
 public AsteriskSelectImpl(SQLVendorImpl vendor, SetQuantifier setQuantifier)
     : base(vendor, setQuantifier)
 {
 }
コード例 #5
0
 protected SelectColumnClauseImpl(SQLVendorImpl vendor, SetQuantifier setQuantifier)
     : base(vendor)
 {
     this._setQuantifier = setQuantifier;
 }
コード例 #6
0
 protected void ProcessSetQuantifier(SetQuantifier quantifier, StringBuilder builder)
 {
     builder.Append(this._setQuantifiers[quantifier]);
 }
コード例 #7
0
ファイル: Factories.cs プロジェクト: radtek/SQLGenerator
 public virtual QueryExpressionBodyBinary NewBinaryQuery(QueryExpressionBody left, QueryExpressionBody right, SetOperations setOperation, SetQuantifier quantifier = SetQuantifier.Distinct, CorrespondingSpec correspondingSpec = null)
 {
     return(new QueryExpressionBodyBinaryImpl(this.vendor, setOperation, correspondingSpec, left, right, quantifier));
 }
コード例 #8
0
ファイル: Factories.cs プロジェクト: radtek/SQLGenerator
 public virtual ColumnReferences NewSelectClause(SetQuantifier quantifier, ImmutableArray <ColumnReferenceInfo> cols)
 {
     return(new ColumnReferencesImpl(this.vendor, quantifier, cols));
 }
コード例 #9
0
ファイル: Factories.cs プロジェクト: radtek/SQLGenerator
 public virtual AsteriskSelect NewSelectAllClause(SetQuantifier quantifier)
 {
     return(new AsteriskSelectImpl(this.vendor, quantifier));
 }
コード例 #10
0
 public static QuerySpecificationBuilder WithSetQuantifier(this QuerySpecificationBuilder builder, SetQuantifier quantifier)
 {
     builder.ColumnsBuilder.SetSetQuantifier(quantifier);
     return(builder);
 }
コード例 #11
0
 public static ColumnReferences NewSelectClause(this QueryFactory factory, SetQuantifier quantifier, params ColumnReferenceInfo[] cols)
 {
     return(factory.NewSelectClause(quantifier, ArrayQueryHelper.NewAQ(cols, false)));
 }
コード例 #12
0
 public QueryExpressionBodyBuilder Except(QueryExpressionBody another, SetQuantifier setQuantifier = SetQuantifier.Distinct, CorrespondingSpec correspondingSpec = null)
 {
     this._current = this.vendor.QueryFactory.NewBinaryQuery(this._current, another, SetOperations.Except, setQuantifier, correspondingSpec);
     return(this);
 }
コード例 #13
0
 public SelectColumnClauseBuilder SetSetQuantifier(SetQuantifier quantifier)
 {
     this._selectAll  = false;
     this._quantifier = quantifier;
     return(this);
 }