public override ISqlBuilder CreateSqlBuilder(BaseQueueManger queueManger, Queue queue) { switch (queueManger.ContextMap.ContextProperty.DataVer) { case "2000": return new SqlBuilder2000(queueManger, queue); } return new SqlBuilder(queueManger, queue); }
/// <summary> /// 复制条件 /// </summary> /// <param name="queue">队列</param> internal void Copy(Queue queue) { ID = queue.ID; Index = queue.Index; ContextProvider = queue.ContextProvider; ExpBuilder = queue.ExpBuilder; SqlBuilder = ContextProvider.DbProvider.CreateSqlBuilder(ContextProvider.Map.ContextProperty.DataVer, ExpBuilder, Name); }
/// <summary> /// 复制条件 /// </summary> /// <param name="queue">队列</param> internal void Copy(Queue queue) { ID = queue.ID; Index = queue.Index; ContextProvider = queue.ContextProvider; _expBuilder = queue.ExpBuilder; //_sqlBuilder = queue.SqlBuilder; //_procBuilder = queue.ProcBuilder; }
public ExpressionBool(BaseQueueManger queueManger, Queue queue) : base(queueManger, queue) { }
public override ISqlBuilder CreateSqlBuilder(BaseQueueManger queueManger, Queue queue) { return new SqlBuilder(queueManger, queue); }
public SqlBuilder2000(BaseQueueManger queueManger, Queue queue) : base(queueManger, queue) { }
/// <summary> /// 创建SQL查询 /// </summary> /// <param name="queueManger">队列管理模块</param> /// <param name="queue">包含数据库SQL操作的队列</param> public abstract ISqlBuilder CreateSqlBuilder(BaseQueueManger queueManger, Queue queue);