public QuerySourceOnConstant NewConstantSource(QuerySpecificationModel parent, string key, DbType constantType, bool allowNull)
 {
     return(new QuerySourceOnConstant(NewId(parent), key, constantType, allowNull));
 }
 internal void AddUnionQuery(QuerySpecificationModel query)
 {
     union_queries.Add(query);
 }
 public QueryColumnSourceVALUES NewQueryColumnSourceValues(QuerySpecificationModel parent, InlineDerivedTable derivedTable)
 {
     return(new QueryColumnSourceVALUES(NewId(parent), derivedTable));
 }
 public QuerySourceOnDerivedTable NewSourceOnDerivedTable(QuerySpecificationModel parent, string key)
 {
     return(new QuerySourceOnDerivedTable(NewId(parent), key));
 }
 public QueryColumnSourceVarTable NewQueryColumnSourceVarTable(QuerySpecificationModel parent, VariableTableReference varTableRef)
 {
     return(new QueryColumnSourceVarTable(NewId(parent), varTableRef));
 }
 public QueryColumnSourceNT NewQueryColumnSourceNT(QuerySpecificationModel parent, NamedTableReference ntRef)
 {
     return(new QueryColumnSourceNT(NewId(parent), ntRef));
 }
 public string NewNameForColumnString(QuerySpecificationModel parent)
 {
     return("?" + NewId(parent) + "?");
 }
 public QueryColumnSourceUDTF NewQueryColumnSourceUDTF(QuerySpecificationModel parent, SchemaObjectFunctionTableReference udtfRef)
 {
     return(new QueryColumnSourceUDTF(NewId(parent), udtfRef));
 }
 public QueryOnReqursiveCte NewSourceOnRecursiveCte(QuerySpecificationModel parent, string key, QuerySourceOnCte cte)
 {
     return(new QueryOnReqursiveCte(NewId(parent), key, cte));
 }
 public QuerySourceFullTextTable NewFullTextTable(QuerySpecificationModel parent, FullTextTableReference fttRef)
 {
     return(new QuerySourceFullTextTable(NewId(parent), fttRef));
 }
 public QuerySourceOnDerivedTable NewSourceOnQueryDerivedTable(QuerySpecificationModel parent, string key, IQueryModel cte_qmodel)
 {
     return(new QuerySourceOnDerivedTable(NewId(parent), key).SetQuery(cte_qmodel));
 }
 public string NewNameForColumnInt64(QuerySpecificationModel parent, long lit)
 {
     return("?" + NewId(parent) + "?");
 }
 public string NewNameForColumnLiteral(QuerySpecificationModel parent, Literal lit)
 {
     return("?" + NewId(parent) + "?");
 }
 public QuerySourceOnVariable NewVariableSource(QuerySpecificationModel parent, VariableReference varRef, DbType variableDbType)
 {
     return(new QuerySourceOnVariable(NewId(parent), varRef, variableDbType));
 }
 public QuerySourceOnNull NewNullSource(QuerySpecificationModel parent, string key)
 {
     return(new QuerySourceOnNull(NewId(parent), key));
 }