text stringlengths 0 234 |
|---|
Stmt.Save_Field (Name => COL_5_3_NAME, -- server_id |
Value => Object.Server_Id); |
Object.Clear_Modified (6); |
end if; |
if Object.Is_Modified (7) then |
Stmt.Save_Field (Name => COL_6_3_NAME, -- task_id |
Value => Object.Task_Id); |
Object.Clear_Modified (7); |
end if; |
if Object.Is_Modified (8) then |
Stmt.Save_Field (Name => COL_7_3_NAME, -- status |
Value => Integer (Message_Status_Type'Pos (Object.Status))); |
Object.Clear_Modified (8); |
end if; |
if Object.Is_Modified (9) then |
Stmt.Save_Field (Name => COL_8_3_NAME, -- processing_date |
Value => Object.Processing_Date); |
Object.Clear_Modified (9); |
end if; |
if Object.Is_Modified (11) then |
Stmt.Save_Field (Name => COL_10_3_NAME, -- entity_id |
Value => Object.Entity_Id); |
Object.Clear_Modified (11); |
end if; |
if Object.Is_Modified (12) then |
Stmt.Save_Field (Name => COL_11_3_NAME, -- entity_type |
Value => Object.Entity_Type); |
Object.Clear_Modified (12); |
end if; |
if Object.Is_Modified (13) then |
Stmt.Save_Field (Name => COL_12_3_NAME, -- finish_date |
Value => Object.Finish_Date); |
Object.Clear_Modified (13); |
end if; |
if Object.Is_Modified (14) then |
Stmt.Save_Field (Name => COL_13_3_NAME, -- queue_id |
Value => Object.Queue); |
Object.Clear_Modified (14); |
end if; |
if Object.Is_Modified (15) then |
Stmt.Save_Field (Name => COL_14_3_NAME, -- message_type_id |
Value => Object.Message_Type); |
Object.Clear_Modified (15); |
end if; |
if Object.Is_Modified (16) then |
Stmt.Save_Field (Name => COL_15_3_NAME, -- user_id |
Value => Object.User); |
Object.Clear_Modified (16); |
end if; |
if Object.Is_Modified (17) then |
Stmt.Save_Field (Name => COL_16_3_NAME, -- session_id |
Value => Object.Session); |
Object.Clear_Modified (17); |
end if; |
if Stmt.Has_Save_Fields then |
Object.Version := Object.Version + 1; |
Stmt.Save_Field (Name => "version", |
Value => Object.Version); |
Stmt.Set_Filter (Filter => "id = ? and version = ?"); |
Stmt.Add_Param (Value => Object.Get_Key); |
Stmt.Add_Param (Value => Object.Version - 1); |
declare |
Result : Integer; |
begin |
Stmt.Execute (Result); |
if Result /= 1 then |
if Result /= 0 then |
raise ADO.Objects.UPDATE_ERROR; |
else |
raise ADO.Objects.LAZY_LOCK; |
end if; |
end if; |
Function Definition: procedure List (Object : in out Message_Vector; |
Function Body: Session : in out ADO.Sessions.Session'Class; |
Query : in ADO.SQL.Query'Class) is |
Stmt : ADO.Statements.Query_Statement |
:= Session.Create_Statement (Query, MESSAGE_DEF'Access); |
begin |
Stmt.Execute; |
Message_Vectors.Clear (Object); |
while Stmt.Has_Elements loop |
declare |
Item : Message_Ref; |
Impl : constant Message_Access := new Message_Impl; |
begin |
Impl.Load (Stmt, Session); |
ADO.Objects.Set_Object (Item, Impl.all'Access); |
Object.Append (Item); |
Function Definition: procedure Unchecked_Free is new Ada.Unchecked_Deallocation |
Function Body: (Application_Impl, Application_Impl_Ptr); |
pragma Warnings (Off, "*redundant conversion*"); |
Ptr : Application_Impl_Ptr := Application_Impl (Object.all)'Access; |
pragma Warnings (On, "*redundant conversion*"); |
begin |
Unchecked_Free (Ptr); |
end Destroy; |
procedure Find (Object : in out Application_Impl; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.