{$IfDef FPC}{$CodePage cp1251}{$EndIf FPC}
unit m3OrQueryExecutor;
// --------------------------------------------------------------------------
// Родители: "Queries" <> MUID: (66FB115B029F) :: "m3" <> MUID: (66FB10950007) :: "Shared Delphi For Archi" <> MUID: (4ABA2360025A)
// --------------------------------------------------------------------------
// Модуль: "w:\common\components\rtl\Garant\m3\m3OrQueryExecutor.pas" GeneratorVersion: 1.0.0.883901
// Стереотип: "<>"
// Элемент модели: "Tm3OrQueryExecutor" MUID: (67A4A81D029F)
// --------------------------------------------------------------------------
//#UC START# *67A4A81D029FBeforeDefines*
//#UC END# *67A4A81D029FBeforeDefines*
{$Include daDefine.inc}
interface
uses
l3IntfUses
, daOrQueryParams
, l3Ranges
, m3AttrIndexInterfaces
, daQueryInterfaces
, m3QueryInterfaces
, daEnumerableInterfaces
, l3Interfaces
, m4SearchResult
, daQueryParams
, l3LongintList
, daTypes
, evdDATypes
, daAbstractQueryExecutor
;
type
{$If not Defined(_ParamsType_Defined_) }
{Tm3OrQueryExecutor.}_ParamsType_ = TdaOrQueryParams;
{$Define _ParamsType_Defined_ }
{$Define _ParamsType_IsClass_ }
{$Define _ParamsType_IsAcceptableForScripts_ }
{$IfEnd} // not Defined(_ParamsType_Defined_)
{$Include Mm3QueryExecutor_imp.pas}
Tm3OrQueryExecutor = class(_Mm3QueryExecutor_)
protected
function FindByParams(const aParams: TdaOrQueryParams;
const aSearcher: Im3AttrIndexSearcher): Il3RangeEnumerable; override;
public
{$If NOT Defined(l3NoSRT)}
function SetRefTo(var thePlace: Tm3OrQueryExecutor): Boolean; overload; {$If Defined(l3HasInl)}inline;{$IfEnd}
{$IfEnd} // NOT Defined(l3NoSRT)
end;//Tm3OrQueryExecutor
implementation
uses
l3ImplUses
, m3QueryResultSetFromLongintList
, daQueryExecutorFactory
, m3AttrIndexSearcher
, SysUtils
, l3Enumerators
, l3InterfacedIntegerList
, k2Tags
//#UC START# *67A4A81D029Fimpl_uses*
//#UC END# *67A4A81D029Fimpl_uses*
;
{$Include Mm3QueryExecutor_imp.pas}
{$If NOT Defined(l3NoSRT)}
function Tm3OrQueryExecutor.SetRefTo(var thePlace: Tm3OrQueryExecutor): Boolean;
begin
if (thePlace = Self) then
Result := false
else
begin
Result := true;
thePlace.Free;
thePlace := Self.Use;
end;//thePlace = Self
end;//Tm3OrQueryExecutor.SetRefTo
{$IfEnd} // NOT Defined(l3NoSRT)
function Tm3OrQueryExecutor.FindByParams(const aParams: TdaOrQueryParams;
const aSearcher: Im3AttrIndexSearcher): Il3RangeEnumerable;
//#UC START# *670660CF0357_67A4A81D029F_var*
var
l_Executor : Im3QueryExecutor;
l_Found : Il3RangeEnumerable;
l_Index : Integer;
//#UC END# *670660CF0357_67A4A81D029F_var*
begin
//#UC START# *670660CF0357_67A4A81D029F_impl*
Result := nil;
for l_Index := 0 to Pred(aParams.QueryList.Count) do
begin
l_Executor := Self.MakeIntExecutor(aParams.QueryList.Items[l_Index].Query);
// if (f_TextExecutor = nil) and (aParams.QueryList.Items[l_Index].Query is TdaTextQueryParams) then
// f_TextExecutor := l_Executor;
l_Found := l_Executor.Find;
Result := Il3RangeEnumerable_JoinWithOther(Result, l_Found);
end;//for l_Index
//#UC END# *670660CF0357_67A4A81D029F_impl*
end;//Tm3OrQueryExecutor.FindByParams
//#UC START# *67A4A81D029FforDiagramm*
(*
*)
//#UC END# *67A4A81D029FforDiagramm*
end.
Заметки о тестировании, программировании и прочий "поток сознания", который жалко писать "в стол"
воскресенье, 12 апреля 2026 г.
m3OrQueryExecutor
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий