Ejemplo n.º 1
0
 public SelectColumnClauseBuilderImpl(SQLVendor vendor)
     : base(vendor)
 {
     this._selectAll  = false;
     this._cols       = new List <ColumnReferenceInfo>();
     this._quantifier = SetQuantifier.All;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
0
 public AsteriskSelectImpl(SQLVendorImpl vendor, SetQuantifier setQuantifier)
     : base(vendor, setQuantifier)
 {
 }
Ejemplo n.º 5
0
 protected SelectColumnClauseImpl(SQLVendorImpl vendor, SetQuantifier setQuantifier)
     : base(vendor)
 {
     this._setQuantifier = setQuantifier;
 }
Ejemplo n.º 6
0
 protected void ProcessSetQuantifier(SetQuantifier quantifier, StringBuilder builder)
 {
     builder.Append(this._setQuantifiers[quantifier]);
 }
Ejemplo n.º 7
0
 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));
 }
Ejemplo n.º 8
0
 public virtual ColumnReferences NewSelectClause(SetQuantifier quantifier, ImmutableArray <ColumnReferenceInfo> cols)
 {
     return(new ColumnReferencesImpl(this.vendor, quantifier, cols));
 }
Ejemplo n.º 9
0
 public virtual AsteriskSelect NewSelectAllClause(SetQuantifier quantifier)
 {
     return(new AsteriskSelectImpl(this.vendor, quantifier));
 }
Ejemplo n.º 10
0
 public static QuerySpecificationBuilder WithSetQuantifier(this QuerySpecificationBuilder builder, SetQuantifier quantifier)
 {
     builder.ColumnsBuilder.SetSetQuantifier(quantifier);
     return(builder);
 }
Ejemplo n.º 11
0
 public static ColumnReferences NewSelectClause(this QueryFactory factory, SetQuantifier quantifier, params ColumnReferenceInfo[] cols)
 {
     return(factory.NewSelectClause(quantifier, ArrayQueryHelper.NewAQ(cols, false)));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 13
0
 public SelectColumnClauseBuilder SetSetQuantifier(SetQuantifier quantifier)
 {
     this._selectAll  = false;
     this._quantifier = quantifier;
     return(this);
 }