text stringlengths 0 234 |
|---|
end if; |
if Object.Is_Modified (3) then |
Stmt.Save_Field (Name => COL_2_1_NAME, -- text |
Value => Object.Text); |
Object.Clear_Modified (3); |
end if; |
if Object.Is_Modified (4) then |
Stmt.Save_Field (Name => COL_3_1_NAME, -- for_entity_id |
Value => Object.For_Entity_Id); |
Object.Clear_Modified (4); |
end if; |
if Object.Is_Modified (5) then |
Stmt.Save_Field (Name => COL_4_1_NAME, -- user_id |
Value => Object.User); |
Object.Clear_Modified (5); |
end if; |
if Object.Is_Modified (6) then |
Stmt.Save_Field (Name => COL_5_1_NAME, -- entity_type |
Value => Object.Entity_Type); |
Object.Clear_Modified (6); |
end if; |
if Stmt.Has_Save_Fields then |
Stmt.Set_Filter (Filter => "id = ?"); |
Stmt.Add_Param (Value => Object.Get_Key); |
declare |
Result : Integer; |
begin |
Stmt.Execute (Result); |
if Result /= 1 then |
if Result /= 0 then |
raise ADO.Objects.UPDATE_ERROR; |
end if; |
end if; |
Function Definition: procedure Set_Field_Enum is |
Function Body: new ADO.Objects.Set_Field_Operation (Status_Type); |
Impl : Comment_Access; |
begin |
Set_Field (Object, Impl); |
Set_Field_Enum (Impl.all, 7, Impl.Status, Value); |
end Set_Status; |
function Get_Status (Object : in Comment_Ref) |
return AWA.Comments.Models.Status_Type is |
Impl : constant Comment_Access |
:= Comment_Impl (Object.Get_Load_Object.all)'Access; |
begin |
return Impl.Status; |
end Get_Status; |
procedure Set_Format (Object : in out Comment_Ref; |
Value : in AWA.Comments.Models.Format_Type) is |
procedure Set_Field_Enum is |
new ADO.Objects.Set_Field_Operation (Format_Type); |
Impl : Comment_Access; |
begin |
Set_Field (Object, Impl); |
Set_Field_Enum (Impl.all, 8, Impl.Format, Value); |
end Set_Format; |
function Get_Format (Object : in Comment_Ref) |
return AWA.Comments.Models.Format_Type is |
Impl : constant Comment_Access |
:= Comment_Impl (Object.Get_Load_Object.all)'Access; |
begin |
return Impl.Format; |
end Get_Format; |
procedure Set_Author (Object : in out Comment_Ref; |
Value : in AWA.Users.Models.User_Ref'Class) is |
Impl : Comment_Access; |
begin |
Set_Field (Object, Impl); |
ADO.Objects.Set_Field_Object (Impl.all, 9, Impl.Author, Value); |
end Set_Author; |
function Get_Author (Object : in Comment_Ref) |
return AWA.Users.Models.User_Ref'Class is |
Impl : constant Comment_Access |
:= Comment_Impl (Object.Get_Load_Object.all)'Access; |
begin |
return Impl.Author; |
end Get_Author; |
-- Copy of the object. |
procedure Copy (Object : in Comment_Ref; |
Into : in out Comment_Ref) is |
Result : Comment_Ref; |
begin |
if not Object.Is_Null then |
declare |
Impl : constant Comment_Access |
:= Comment_Impl (Object.Get_Load_Object.all)'Access; |
Copy : constant Comment_Access |
:= new Comment_Impl; |
begin |
ADO.Objects.Set_Object (Result, Copy.all'Access); |
Copy.Copy (Impl.all); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.