|
@@ -340,7 +340,7 @@ begin
|
|
EndMethod(Strings,S);
|
|
EndMethod(Strings,S);
|
|
// AcceptVisitor
|
|
// AcceptVisitor
|
|
S:=BeginAcceptVisitor(Strings,C,ObjectClassName);
|
|
S:=BeginAcceptVisitor(Strings,C,ObjectClassName);
|
|
- AddLn(Strings,'Result:=Result and (Visited.ObjectState in [posCreate,posdelete,posUpdate]);');
|
|
|
|
|
|
+ AddLn(Strings,'Result:=Result and (Visited.ObjectState in [posCreate,posDelete,posUpdate]);');
|
|
DecIndent;
|
|
DecIndent;
|
|
EndMethod(Strings,S);
|
|
EndMethod(Strings,S);
|
|
S:=BeginSetupParams(Strings,C,ObjectClassName,True);
|
|
S:=BeginSetupParams(Strings,C,ObjectClassName,True);
|
|
@@ -431,7 +431,7 @@ begin
|
|
// Common setup case
|
|
// Common setup case
|
|
If (V in [voCreate,voUpdate]) and (UseCommonSetupParams) then
|
|
If (V in [voCreate,voUpdate]) and (UseCommonSetupParams) then
|
|
A:=Format('TUpdateCreate%sVisitor',[StripType(ObjectClassName)])
|
|
A:=Format('TUpdateCreate%sVisitor',[StripType(ObjectClassName)])
|
|
- else If (V in [voCreate,voDelete,voUpdate,voCommonSetupParams]) then
|
|
|
|
|
|
+ else If (V in [voCreate,voDelete,voUpdate,voCommonSetupParams,voSingleSaveVisitor]) then
|
|
A:='TtiVisitorUpdate'
|
|
A:='TtiVisitorUpdate'
|
|
else
|
|
else
|
|
A:='TtiVisitorSelect';
|
|
A:='TtiVisitorSelect';
|
|
@@ -1226,7 +1226,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
Initialization
|
|
Initialization
|
|
- RegisterCodeGenerator('tiOPF','tiOPF class and visitors for the data',TTiOPFCodeGenerator);
|
|
|
|
|
|
+ RegisterCodeGenerator('tiOPF','tiOPF classes and hard-coded visitors for the data',TTiOPFCodeGenerator);
|
|
|
|
|
|
Finalization
|
|
Finalization
|
|
UnRegisterCodeGenerator(TTiOPFCodeGenerator);
|
|
UnRegisterCodeGenerator(TTiOPFCodeGenerator);
|